avfilter/af_aderivative: Free out on error

Fixes: CID1197065 Resource leak

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 382e9e79f3)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
release/7.0
Michael Niedermayer 7 months ago
parent 9b52ca7ca5
commit b2da9efb71
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
  1. 1
      libavfilter/af_aderivative.c

@ -126,6 +126,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
s->prev = ff_get_audio_buffer(inlink, 1);
if (!s->prev) {
av_frame_free(&in);
av_frame_free(&out);
return AVERROR(ENOMEM);
}
}

Loading…
Cancel
Save