From 742b660eb77db42ecb97fe7f467899efe53ccebf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Thu, 12 Jan 2012 00:50:48 +0100 Subject: [PATCH] wtvdec: fix a few memleaks as show by valgrind with the FATE test. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Reimar Döffinger --- libavformat/wtvdec.c | 2 ++ 1 file changed, 2 insertions(+) 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); }