1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

Fix packet_buffer memory leak in avformat_free_context

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Andrey Myznikov 2014-08-15 17:25:15 +03:00 committed by Michael Niedermayer
parent 3eba0a9190
commit 609d5db803

View File

@ -3525,6 +3525,7 @@ void avformat_free_context(AVFormatContext *s)
av_dict_free(&s->metadata); av_dict_free(&s->metadata);
av_freep(&s->streams); av_freep(&s->streams);
av_freep(&s->internal); av_freep(&s->internal);
free_packet_buffer(&s->packet_buffer, &s->packet_buffer_end);
av_free(s); av_free(s);
} }