Commit 19f56720 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_perspective: Free out AVFrame on error

Fixes memleak
Fixes part of CID1197065
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 21a07ac1
......@@ -463,6 +463,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
if (s->eval_mode == EVAL_MODE_FRAME) {
if ((ret = calc_persp_luts(ctx, inlink)) < 0) {
av_frame_free(&out);
return ret;
}
}
......
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