diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-01-12 00:50:48 +0100 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-01-12 20:09:16 +0100 |
commit | 742b660eb77db42ecb97fe7f467899efe53ccebf (patch) | |
tree | 1fcd4c9d039508c09a701e6782fdf634d9559d05 /libavformat/wtvdec.c | |
parent | bb4c18881af87c5c1ee660f0c6700bc4fc249272 (diff) | |
download | ffmpeg-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.c | 2 |
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); } |