From f862ff750b48039d28741fefcbd8719185333c49 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Thu, 4 Feb 2016 18:02:29 +0100 Subject: [PATCH] avfilter/vf_stack: free input pads name on uninit Signed-off-by: Paul B Mahol --- libavfilter/vf_stack.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libavfilter/vf_stack.c b/libavfilter/vf_stack.c index b6243ebdb8..03643b6f96 100644 --- a/libavfilter/vf_stack.c +++ b/libavfilter/vf_stack.c @@ -215,8 +215,13 @@ static int request_frame(AVFilterLink *outlink) static av_cold void uninit(AVFilterContext *ctx) { StackContext *s = ctx->priv; + int i; + ff_framesync_uninit(&s->fs); av_freep(&s->frames); + + for (i = 0; i < ctx->nb_inputs; i++) + av_freep(&ctx->input_pads[i].name); } #define OFFSET(x) offsetof(StackContext, x)