[FFmpeg-cvslog] r22460 - trunk/libavformat/oggparsevorbis.c

conrad subversion
Thu Mar 11 08:17:50 CET 2010


Author: conrad
Date: Thu Mar 11 08:17:49 2010
New Revision: 22460

Log:
oggdec: Fix memory leak in setting up vorbis headers

Modified:
   trunk/libavformat/oggparsevorbis.c

Modified: trunk/libavformat/oggparsevorbis.c
==============================================================================
--- trunk/libavformat/oggparsevorbis.c	Thu Mar 11 08:17:46 2010	(r22459)
+++ trunk/libavformat/oggparsevorbis.c	Thu Mar 11 08:17:49 2010	(r22460)
@@ -153,6 +153,7 @@ fixup_vorbis_headers(AVFormatContext * a
     for (i = 0; i < 3; i++) {
         memcpy(&ptr[offset], priv->packet[i], priv->len[i]);
         offset += priv->len[i];
+        av_freep(&priv->packet[i]);
     }
     *buf = av_realloc(*buf, offset + FF_INPUT_BUFFER_PADDING_SIZE);
     return offset;



More information about the ffmpeg-cvslog mailing list