aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Myznikov <andrey.myznikov@gmail.com>2014-08-15 17:25:15 +0300
committerMichael Niedermayer <michaelni@gmx.at>2014-08-15 19:20:12 +0200
commit609d5db8035c868be034892a33762779a40ab8b9 (patch)
tree31512960e2b702f04fec607d5a971a5e6d41d7fb
parent3eba0a91905fd9382fbd7e45eb663f9fc959f034 (diff)
downloadffmpeg-609d5db8035c868be034892a33762779a40ab8b9.tar.gz
Fix packet_buffer memory leak in avformat_free_context
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/utils.c1
1 files changed, 1 insertions, 0 deletions
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);
}