diff --git a/libavformat/wtvdec.c b/libavformat/wtvdec.c index 56050e962e..db9bb10068 100644 --- a/libavformat/wtvdec.c +++ b/libavformat/wtvdec.c @@ -287,6 +287,8 @@ static void wtvfile_close(AVIOContext *pb) { WtvFile *wf = pb->opaque; av_free(wf->sectors); + av_freep(&pb->opaque); + av_freep(&pb->buffer); av_free(pb); }