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

Anton Khirnov git at videolan.org
Fri Nov 22 12:40:17 CET 2013


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Nov 15 19:06:23 2013 +0100| [ce9bba5340a5fb6f38974a19af019dd6aa2da035] | committer: Anton Khirnov

avidec: fix a memleak in the dv init code.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable at libav.org

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

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

diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index edc9c93..c71d545 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -484,6 +484,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