[FFmpeg-cvslog] avidec: fix a memleak in the dv init code.

Anton Khirnov git at videolan.org
Sun Jan 12 16:44:05 CET 2014


ffmpeg | branch: release/1.1 | Anton Khirnov <anton at khirnov.net> | Fri Nov 15 19:06:23 2013 +0100| [7c214e313c92e8e9f125c0ab74902bdd5ae2e153] | committer: Reinhard Tartler

avidec: fix a memleak in the dv init code.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable at libav.org
(cherry picked from commit ce9bba5340a5fb6f38974a19af019dd6aa2da035)
Signed-off-by: Reinhard Tartler <siretart at tauware.de>

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

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

diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index e17d932..414ed01 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -456,6 +456,7 @@ static int avi_read_header(AVFormatContext *s)
                 ast = s->streams[0]->priv_data;
                 av_freep(&s->streams[0]->codec->extradata);
                 av_freep(&s->streams[0]->codec);
+                av_freep(&s->streams[0]->info);
                 av_freep(&s->streams[0]);
                 s->nb_streams = 0;
                 if (CONFIG_DV_DEMUXER) {



More information about the ffmpeg-cvslog mailing list