[FFmpeg-cvslog] r24342 - trunk/libavformat/movenc.c

mstorsjo subversion
Tue Jul 20 07:23:28 CEST 2010


Author: mstorsjo
Date: Tue Jul 20 07:23:28 2010
New Revision: 24342

Log:
movenc: Free the buffer returned by url_close_dyn_buffer, regardless of the size

This fixes a leak introduced in rev 23942, since we write padding to the
buffer unconditionally.

Modified:
   trunk/libavformat/movenc.c

Modified: trunk/libavformat/movenc.c
==============================================================================
--- trunk/libavformat/movenc.c	Tue Jul 20 01:57:09 2010	(r24341)
+++ trunk/libavformat/movenc.c	Tue Jul 20 07:23:28 2010	(r24342)
@@ -1630,8 +1630,8 @@ static int mov_write_udta_tag(ByteIOCont
         put_be32(pb, size+8);
         put_tag(pb, "udta");
         put_buffer(pb, buf, size);
-        av_free(buf);
     }
+    av_free(buf);
 
     return 0;
 }



More information about the ffmpeg-cvslog mailing list