[FFmpeg-cvslog] nutenc: fix a memleak

Anton Khirnov git at videolan.org
Fri Mar 18 18:13:34 CET 2011


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Mar 17 17:00:21 2011 +0100| [2cface71ca58b1ab811efae7d22f3264f362f672] | committer: Mans Rullgard

nutenc: fix a memleak

This fixes a minor memory leak introduced in 073f8b1.

Signed-off-by: Mans Rullgard <mans at mansr.com>

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

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

diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
index 86701fa..fafbae8 100644
--- a/libavformat/nutenc.c
+++ b/libavformat/nutenc.c
@@ -846,6 +846,7 @@ static int write_trailer(AVFormatContext *s){
     avio_flush(bc);
     ff_nut_free_sp(nut);
     av_freep(&nut->stream);
+    av_freep(&nut->chapter);
     av_freep(&nut->time_base);
 
     return 0;




More information about the ffmpeg-cvslog mailing list