diff --git a/libavformat/utils.c b/libavformat/utils.c index 5d146d65e0..34eca17ec9 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -3525,6 +3525,7 @@ void avformat_free_context(AVFormatContext *s) av_dict_free(&s->metadata); av_freep(&s->streams); av_freep(&s->internal); + free_packet_buffer(&s->packet_buffer, &s->packet_buffer_end); av_free(s); }