diff --git a/libavformat/mov.c b/libavformat/mov.c index 76c25a3e4d..5f3577c4db 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1899,6 +1899,7 @@ static int mov_read_close(AVFormatContext *s) av_freep(&sc->drefs); if (sc->pb && sc->pb != s->pb) url_fclose(sc->pb); + av_freep(&sc); } if(mov->dv_demux){ for(i=0; idv_fctx->nb_streams; i++){