Commit 8e46c7c1 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/af_agate: fix memleak of out frame

Fixes CID1351358
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 253209ac
......@@ -295,6 +295,7 @@ static int scfilter_frame(AVFilterLink *link, AVFrame *frame)
if (!in[i]) {
av_frame_free(&in[0]);
av_frame_free(&in[1]);
av_frame_free(&out);
return AVERROR(ENOMEM);
}
av_audio_fifo_read(s->fifo[i], (void **)in[i]->data, nb_samples);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment