Mercurial > libavformat.hg
changeset 3416:f386245ae6f7 libavformat
matroskadec: fix potential mem leak
may or may not fix CID134 and CID135
author | aurel |
---|---|
date | Mon, 02 Jun 2008 23:37:14 +0000 |
parents | 89f651b6f12a |
children | e38326ffbb5e |
files | matroskadec.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/matroskadec.c Mon Jun 02 23:27:14 2008 +0000 +++ b/matroskadec.c Mon Jun 02 23:37:14 2008 +0000 @@ -505,6 +505,7 @@ offset_t pos = url_ftell(pb); av_log(matroska->ctx, AV_LOG_ERROR, "Read error at pos. %"PRIu64" (0x%"PRIx64")\n", pos, pos); + av_free(*str); return AVERROR(EIO); } (*str)[size] = '\0';