avfilter/af_headphone: do not leak input frames on error

This commit is contained in:
Paul B Mahol 2018-11-12 09:38:30 +01:00
parent a09411a0ee
commit 0f2cfa3d80

View File

@ -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);