Browse Source

Fix packet_buffer memory leak in avformat_free_context

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.4
Andrey Myznikov Michael Niedermayer 11 years ago
parent
commit
609d5db803
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/utils.c

+ 1
- 0
libavformat/utils.c View File

@@ -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);
}



Loading…
Cancel
Save