[FFmpeg-cvslog] lavf/wtvenc: fix s[tp]_pairs memleak.

Clément Bœsch git at videolan.org
Tue Nov 13 20:06:59 CET 2012


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Sun Nov 11 23:55:25 2012 +0100| [41ebbb3b0462182a87f610fe6a48c6ed8acf5cd7] | committer: Clément Bœsch

lavf/wtvenc: fix s[tp]_pairs memleak.

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

 libavformat/wtvenc.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/wtvenc.c b/libavformat/wtvenc.c
index 9cc5a05..8300662 100644
--- a/libavformat/wtvenc.c
+++ b/libavformat/wtvenc.c
@@ -730,6 +730,9 @@ static int write_trailer(AVFormatContext *s)
     avio_wl32(pb, file_end_pos >> WTV_SECTOR_BITS);
 
     avio_flush(pb);
+
+    av_free(wctx->sp_pairs);
+    av_free(wctx->st_pairs);
     return 0;
 }
 



More information about the ffmpeg-cvslog mailing list