diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2024-06-09 17:47:46 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-07-07 23:36:30 +0200 |
commit | 382e9e79f3a0011d93af4b11ca6ba6b85113a09a (patch) | |
tree | 03bb0f8e9c185b61047f8749b2320cddcb280470 | |
parent | 66b60bae68a3124fb176b0c2d4580f0f76c31dc4 (diff) | |
download | ffmpeg-382e9e79f3a0011d93af4b11ca6ba6b85113a09a.tar.gz |
avfilter/af_aderivative: Free out on error
Fixes: CID1197065 Resource leak
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavfilter/af_aderivative.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/af_aderivative.c b/libavfilter/af_aderivative.c index eeaa23ff88..4883972dcf 100644 --- a/libavfilter/af_aderivative.c +++ b/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); } } |