From 2cface71ca58b1ab811efae7d22f3264f362f672 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 17 Mar 2011 17:00:21 +0100 Subject: [PATCH] nutenc: fix a memleak This fixes a minor memory leak introduced in 073f8b1. Signed-off-by: Mans Rullgard --- libavformat/nutenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c index 86701fa1aa..fafbae86e5 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;