[FFmpeg-cvslog] r23166 - trunk/libavformat/matroskadec.c

conrad subversion
Tue May 18 23:21:24 CEST 2010


Author: conrad
Date: Tue May 18 23:21:23 2010
New Revision: 23166

Log:
matroskadec: Use av_freep in ebml_read_ascii

Based on a Chromium patch

Modified:
   trunk/libavformat/matroskadec.c

Modified: trunk/libavformat/matroskadec.c
==============================================================================
--- trunk/libavformat/matroskadec.c	Tue May 18 21:48:25 2010	(r23165)
+++ trunk/libavformat/matroskadec.c	Tue May 18 23:21:23 2010	(r23166)
@@ -621,7 +621,7 @@ static int ebml_read_ascii(ByteIOContext
     if (!(*str = av_malloc(size + 1)))
         return AVERROR(ENOMEM);
     if (get_buffer(pb, (uint8_t *) *str, size) != size) {
-        av_free(*str);
+        av_freep(str);
         return AVERROR(EIO);
     }
     (*str)[size] = '\0';



More information about the ffmpeg-cvslog mailing list