From 83a508cda5115c61b456aeb227bf770d61010961 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Tue, 25 Aug 2015 13:36:24 +0200 Subject: [PATCH] lavf/segment: Fix memleak. Reviewed-by: Stefano Sabatini Reviewed-by: Ganesh Ajjanagadde --- libavformat/segment.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/segment.c b/libavformat/segment.c index 0d66211962..9345dc9e37 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -876,6 +876,7 @@ fail: av_opt_free(seg); av_freep(&seg->times); av_freep(&seg->frames); + av_freep(&seg->cur_entry.filename); cur = seg->segment_list_entries; while (cur) {