[FFmpeg-cvslog] wtv: fix memleaks during normal operation

Janne Grunau git at videolan.org
Thu Jan 12 01:22:45 CET 2012


ffmpeg | branch: master | Janne Grunau <janne-libav at jannau.net> | Wed Jan 11 01:34:30 2012 +0100| [68e252f548f54a069c26e7502a5ed8e426f26324] | committer: Janne Grunau

wtv: fix memleaks during normal operation

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

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

diff --git a/libavformat/wtv.c b/libavformat/wtv.c
index e4b9ae5..c619868 100644
--- a/libavformat/wtv.c
+++ b/libavformat/wtv.c
@@ -302,6 +302,8 @@ static void wtvfile_close(AVIOContext *pb)
 {
     WtvFile *wf = pb->opaque;
     av_free(wf->sectors);
+    av_free(wf);
+    av_free(pb->buffer);
     av_free(pb);
 }
 
@@ -1093,6 +1095,7 @@ static int read_seek(AVFormatContext *s, int stream_index,
 static int read_close(AVFormatContext *s)
 {
     WtvContext *wtv = s->priv_data;
+    av_free(wtv->index_entries);
     wtvfile_close(wtv->pb);
     return 0;
 }



More information about the ffmpeg-cvslog mailing list