avidec: fix AVStream.info memleak with dv.
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 7 Aug 2012 17:18:53 +0000 (19:18 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 7 Aug 2012 17:18:53 +0000 (19:18 +0200)
Fixes Ticket1334

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/avidec.c

index cc716a2..0144b65 100644 (file)
@@ -483,6 +483,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) {