[FFmpeg-cvslog] avformat/avidec: Fix memleak with dv in avi

Michael Niedermayer git at videolan.org
Wed Sep 28 19:06:24 EEST 2016


ffmpeg | branch: release/3.0 | Michael Niedermayer <michael at niedermayer.cc> | Sun Sep 25 11:56:11 2016 +0200| [fb7617df4eb13659fa20cb535888c10eac0fdb77] | committer: Michael Niedermayer

avformat/avidec: Fix memleak with dv in avi

Found-by: 连一汉 <lianyihan at 360.cn>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit b98dafe04564d5fe3e5bf5073d871dd93a4a62de)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

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

diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 7209980..f4a2872 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -608,6 +608,7 @@ static int avi_read_header(AVFormatContext *s)
                 if (s->streams[0]->info)
                     av_freep(&s->streams[0]->info->duration_error);
                 av_freep(&s->streams[0]->info);
+                av_freep(&s->streams[0]->internal);
                 av_freep(&s->streams[0]);
                 s->nb_streams = 0;
                 if (CONFIG_DV_DEMUXER) {



More information about the ffmpeg-cvslog mailing list