mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
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 382e9e79f3a0011d93af4b11ca6ba6b85113a09a) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
81fbeedd1b
commit
917c2b02c4
@ -150,6 +150,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…
x
Reference in New Issue
Block a user