[FFmpeg-cvslog] r13636 - trunk/libavformat/matroskadec.c
aurel
subversion
Tue Jun 3 01:37:14 CEST 2008
Author: aurel
Date: Tue Jun 3 01:37:14 2008
New Revision: 13636
Log:
matroskadec: fix potential mem leak
may or may not fix CID134 and CID135
Modified:
trunk/libavformat/matroskadec.c
Modified: trunk/libavformat/matroskadec.c
==============================================================================
--- trunk/libavformat/matroskadec.c (original)
+++ trunk/libavformat/matroskadec.c Tue Jun 3 01:37:14 2008
@@ -505,6 +505,7 @@ ebml_read_ascii (MatroskaDemuxContext *m
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';
More information about the ffmpeg-cvslog
mailing list