summaryrefslogtreecommitdiff
path: root/libavfilter/af_headphone.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-11-12 09:38:30 +0100
committerPaul B Mahol <onemda@gmail.com>2018-11-12 09:38:30 +0100
commit0f2cfa3d809b287b886fcaf8e0c61efae7a1cea7 (patch)
tree2aabd0b4b5573ad7c558c781e48b9c4dee456d2f /libavfilter/af_headphone.c
parenta09411a0ee029687d3a80fb17149406513b2d2e5 (diff)
avfilter/af_headphone: do not leak input frames on error
Diffstat (limited to 'libavfilter/af_headphone.c')
-rw-r--r--libavfilter/af_headphone.c3
1 files changed, 3 insertions, 0 deletions
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);