summaryrefslogtreecommitdiff
path: root/libavformat/wtvdec.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-01-12 00:50:48 +0100
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-01-12 20:09:16 +0100
commit742b660eb77db42ecb97fe7f467899efe53ccebf (patch)
tree1fcd4c9d039508c09a701e6782fdf634d9559d05 /libavformat/wtvdec.c
parentbb4c18881af87c5c1ee660f0c6700bc4fc249272 (diff)
downloadffmpeg-742b660eb77db42ecb97fe7f467899efe53ccebf.tar.gz
wtvdec: fix a few memleaks as show by valgrind with the FATE test.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavformat/wtvdec.c')
-rw-r--r--libavformat/wtvdec.c2
1 files changed, 2 insertions, 0 deletions
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);
}