aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2010-07-16 22:36:01 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2010-07-16 22:36:01 +0000
commit5c32755570a155779cbad79cc7de50d9eca5d4c7 (patch)
tree568b6fc781467d919f2cda557c01d1408bdaa0b1
parent819b2dd2b145a79588463586b5adc2587cc94f34 (diff)
downloadffmpeg-5c32755570a155779cbad79cc7de50d9eca5d4c7.tar.gz
In ogg muxer, free dyn allocated buffer, fix memleak
Originally committed as revision 24276 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/oggenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c
index 01e4c01c2c..c787f68231 100644
--- a/libavformat/oggenc.c
+++ b/libavformat/oggenc.c
@@ -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;
}