Mercurial > mplayer.hg
diff libmpdemux/demux_mkv.c @ 36534:9222b4fbe1c8
mkv: replace a missed "return 0" by "goto err_out".
Fixes a memory leak in this error case.
author | reimar |
---|---|
date | Sun, 19 Jan 2014 11:32:51 +0000 |
parents | 139f2b064ef9 |
children | e5e36c2a0055 |
line wrap: on
line diff
--- a/libmpdemux/demux_mkv.c Sun Jan 19 11:30:06 2014 +0000 +++ b/libmpdemux/demux_mkv.c Sun Jan 19 11:32:51 2014 +0000 @@ -788,7 +788,7 @@ { uint64_t num = ebml_read_uint(s, &l); if (num == EBML_UINT_INVALID) - return 0; + goto err_out; track->type = num; mp_msg(MSGT_DEMUX, MSGL_V, "[mkv] | + Track type: "); switch (track->type) {