Commit 21a07ac1 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_fieldhint: Free out AVFrame on error

Fixes memleak
Fixes part of CID1197065
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 15b2c37d
......@@ -196,6 +196,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
break;
default:
av_log(ctx, AV_LOG_ERROR, "Invalid hint: %c.\n", hint);
av_frame_free(&out);
return AVERROR(EINVAL);
}
......
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