diff options
author | Paul B Mahol <onemda@gmail.com> | 2022-03-15 16:21:18 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-03-15 16:22:56 +0100 |
commit | 93a076db70b4addf3b1924fb6fc98343035564cb (patch) | |
tree | 9369227de1cb5845003ae59540aa8eb5cd18db05 /libavfilter/af_biquads.c | |
parent | ac7dc20a5d7b7b9174d4aeadc06b73583fa7c3a4 (diff) | |
download | ffmpeg-93a076db70b4addf3b1924fb6fc98343035564cb.tar.gz |
avfilter/af_biquads: fix possible leak on error
Recently introduced.
Diffstat (limited to 'libavfilter/af_biquads.c')
-rw-r--r-- | libavfilter/af_biquads.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/af_biquads.c b/libavfilter/af_biquads.c index 9a3126c650..a1fe1ec72a 100644 --- a/libavfilter/af_biquads.c +++ b/libavfilter/af_biquads.c @@ -875,8 +875,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf) return ff_filter_frame(outlink, buf); ret = av_channel_layout_copy(&s->ch_layout, &inlink->ch_layout); - if (ret < 0) + if (ret < 0) { + av_frame_free(&buf); return ret; + } if (strcmp(s->ch_layout_str, "all")) av_channel_layout_from_string(&s->ch_layout, s->ch_layout_str); |