[FFmpeg-cvslog] wtvdec: fix a few memleaks as show by valgrind with the FATE test.

Reimar Döffinger git at videolan.org
Thu Jan 12 20:09:50 CET 2012


ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Thu Jan 12 00:50:48 2012 +0100| [742b660eb77db42ecb97fe7f467899efe53ccebf] | committer: Reimar Döffinger

wtvdec: fix a few memleaks as show by valgrind with the FATE test.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=742b660eb77db42ecb97fe7f467899efe53ccebf
---

 libavformat/wtvdec.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavformat/wtvdec.c b/libavformat/wtvdec.c
index 56050e9..db9bb10 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);
 }
 



More information about the ffmpeg-cvslog mailing list