aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2008-06-02 23:37:14 +0000
committerAurelien Jacobs <aurel@gnuage.org>2008-06-02 23:37:14 +0000
commitff2c222c379645cb7825b8ddc222142dcaea1677 (patch)
tree33726ca108e26e169a12da1956a0eb4fdb348d3d /libavformat
parent34ae40971b3299c075878f32479c8059d7acc2bf (diff)
downloadffmpeg-ff2c222c379645cb7825b8ddc222142dcaea1677.tar.gz
matroskadec: fix potential mem leak
may or may not fix CID134 and CID135 Originally committed as revision 13636 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/matroskadec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index e2990e45db..c2b46ae9f7 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -505,6 +505,7 @@ ebml_read_ascii (MatroskaDemuxContext *matroska,
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';