In ogg muxer, free dyn allocated buffer, fix memleak
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Fri, 16 Jul 2010 22:36:01 +0000 (22:36 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Fri, 16 Jul 2010 22:36:01 +0000 (22:36 +0000)
Originally committed as revision 24276 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/oggenc.c

index 01e4c01..c787f68 100644 (file)
@@ -105,6 +105,7 @@ static int ogg_write_page(AVFormatContext *s, OGGPage *page, int extra_flags)
 
     put_buffer(s->pb, buf, size);
     put_flush_packet(s->pb);
+    av_free(buf);
     oggstream->page_count--;
     return 0;
 }