[FFmpeg-cvslog] lavf: make sure stream probe data gets freed.

Anton Khirnov git at videolan.org
Mon Jul 29 02:44:26 CEST 2013


ffmpeg | branch: release/0.10 | Anton Khirnov <anton at khirnov.net> | Wed Mar 27 17:56:59 2013 +0100| [881526744eeac45a740157243503f046d9fa6473] | committer: Reinhard Tartler

lavf: make sure stream probe data gets freed.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable at libav.org
(cherry picked from commit dbb1425811a672eddf4acf0513237cdf20f83756)

Signed-off-by: Reinhard Tartler <siretart at tauware.de>

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

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

diff --git a/libavformat/utils.c b/libavformat/utils.c
index a92acde..98c3af4 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2712,6 +2712,7 @@ void avformat_free_context(AVFormatContext *s)
             av_free_packet(&st->cur_pkt);
         }
         av_dict_free(&st->metadata);
+        av_freep(&st->probe_data.buf);
         av_free(st->index_entries);
         av_free(st->codec->extradata);
         av_free(st->codec->subtitle_header);



More information about the ffmpeg-cvslog mailing list