From 0f2cfa3d809b287b886fcaf8e0c61efae7a1cea7 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Mon, 12 Nov 2018 09:38:30 +0100 Subject: [PATCH] avfilter/af_headphone: do not leak input frames on error --- libavfilter/af_headphone.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavfilter/af_headphone.c b/libavfilter/af_headphone.c index 0c7e4a2957..43e7747d86 100644 --- a/libavfilter/af_headphone.c +++ b/libavfilter/af_headphone.c @@ -587,6 +587,9 @@ static int convert_coeffs(AVFilterContext *ctx, AVFilterLink *inlink) fail: + for (i = 0; i < s->nb_inputs - 1; i++) + av_frame_free(&s->in[i + 1].frame); + av_freep(&data_ir_l); av_freep(&data_ir_r);