diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 956191a985..ebde3d0c54 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -210,6 +210,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap) fail: for(i=0;inb_streams;i++) { av_freep(&s->streams[i]); + av_freep(&s->streams[i]->codec.extradata); } return -1; }