[FFmpeg-cvslog] Fix packet_buffer memory leak in avformat_free_context

Andrey Myznikov git at videolan.org
Fri Aug 15 19:58:10 CEST 2014


ffmpeg | branch: master | Andrey Myznikov <andrey.myznikov at gmail.com> | Fri Aug 15 17:25:15 2014 +0300| [609d5db8035c868be034892a33762779a40ab8b9] | committer: Michael Niedermayer

Fix packet_buffer memory leak in avformat_free_context

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=609d5db8035c868be034892a33762779a40ab8b9
---

 libavformat/utils.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 5d146d6..34eca17 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);
 }
 



More information about the ffmpeg-cvslog mailing list