mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 09:12:33 +00: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>
This commit is contained in:
parent
66b60bae68
commit
382e9e79f3
@ -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…
Reference in New Issue
Block a user