Commit 5c327555 authored by Baptiste Coudurier's avatar Baptiste Coudurier

In ogg muxer, free dyn allocated buffer, fix memleak

Originally committed as revision 24276 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 819b2dd2
...@@ -105,6 +105,7 @@ static int ogg_write_page(AVFormatContext *s, OGGPage *page, int extra_flags) ...@@ -105,6 +105,7 @@ static int ogg_write_page(AVFormatContext *s, OGGPage *page, int extra_flags)
put_buffer(s->pb, buf, size); put_buffer(s->pb, buf, size);
put_flush_packet(s->pb); put_flush_packet(s->pb);
av_free(buf);
oggstream->page_count--; oggstream->page_count--;
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment