diff options
author | Paul B Mahol <onemda@gmail.com> | 2020-02-07 12:09:24 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2020-02-07 12:13:06 +0100 |
commit | 7e8721e98e911a92df6047ae3962bdaa96f601bb (patch) | |
tree | c456a9d982ee4a2f7241f93cb67bf52bd060e4e0 /libavfilter/af_acrossover.c | |
parent | cd671ea08351d936eaaf0aa4755ec3df6009d002 (diff) | |
download | ffmpeg-7e8721e98e911a92df6047ae3962bdaa96f601bb.tar.gz |
avfilter/af_acrossover: free all output frames on error
Diffstat (limited to 'libavfilter/af_acrossover.c')
-rw-r--r-- | libavfilter/af_acrossover.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/af_acrossover.c b/libavfilter/af_acrossover.c index 370922d8c9..20d1d2bda9 100644 --- a/libavfilter/af_acrossover.c +++ b/libavfilter/af_acrossover.c @@ -303,6 +303,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) } fail: + for (i = 0; i < ctx->nb_outputs; i++) + av_frame_free(&frames[i]); av_frame_free(&in); s->input_frame = NULL; |