Skip to content
Snippets Groups Projects
Commit 21a07ac1 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avfilter/vf_fieldhint: Free out AVFrame on error


Fixes memleak
Fixes part of CID1197065

Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
parent 15b2c37d
No related branches found
No related tags found
No related merge requests found
...@@ -196,6 +196,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) ...@@ -196,6 +196,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
break; break;
default: default:
av_log(ctx, AV_LOG_ERROR, "Invalid hint: %c.\n", hint); av_log(ctx, AV_LOG_ERROR, "Invalid hint: %c.\n", hint);
av_frame_free(&out);
return AVERROR(EINVAL); return AVERROR(EINVAL);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment