Commit 3edbc240 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_ciescope: Free out AVFrame on error

Fixes memleak
Fixes part of CID1197065
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent c331be21
......@@ -1369,8 +1369,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
if (!s->background) {
ret = draw_background(ctx);
if (ret < 0)
if (ret < 0) {
av_frame_free(&out);
return ret;
}
s->background = 1;
}
for (y = 0; y < outlink->h; y++) {
......
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