Mercurial > mplayer.hg
changeset 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 | 80218ddb982f |
children | 9bd54104cdee |
files | libmpdemux/demux_mkv.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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) {