lavf: make sure stream probe data gets freed.
authorAnton Khirnov <anton@khirnov.net>
Wed, 27 Mar 2013 16:56:59 +0000 (17:56 +0100)
committerReinhard Tartler <siretart@tauware.de>
Thu, 9 May 2013 18:05:52 +0000 (20:05 +0200)
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
(cherry picked from commit dbb1425811a672eddf4acf0513237cdf20f83756)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavformat/utils.c

index b97809f..6a38064 100644 (file)
@@ -2616,6 +2616,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);