[libav-stable] avidec: fix a memleak in the dv init code.

Anton Khirnov git at libav.org
Thu Nov 21 21:14:30 CET 2013


Module: libav
Branch: master
Commit: ce9bba5340a5fb6f38974a19af019dd6aa2da035

Author:    Anton Khirnov <anton at khirnov.net>
Committer: Anton Khirnov <anton at khirnov.net>
Date:      Fri Nov 15 19:06:23 2013 +0100

avidec: fix a memleak in the dv init code.

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

---

 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 libav-stable mailing list