mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/vf_fieldhint: Free out AVFrame on error
Fixes memleak Fixes part of CID1197065 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
15b2c37d5e
commit
21a07ac191
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue