diff --git a/libavformat/mov.c b/libavformat/mov.c index 9b019e183b..b7823bf2f6 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -2829,6 +2829,14 @@ static int mov_read_close(AVFormatContext *s) av_freep(&sc->drefs); if (sc->pb && sc->pb != s->pb) avio_close(sc->pb); + + av_freep(&sc->chunk_offsets); + av_freep(&sc->stsc_data); + av_freep(&sc->sample_sizes); + av_freep(&sc->keyframes); + av_freep(&sc->stts_data); + av_freep(&sc->stps_data); + av_freep(&sc->rap_group); } if (mov->dv_demux) {