From 21a07ac191adb9239d7d2f24ac947a29a2d9bf8c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 3 Feb 2017 19:37:18 +0100 Subject: [PATCH] avfilter/vf_fieldhint: Free out AVFrame on error Fixes memleak Fixes part of CID1197065 Signed-off-by: Michael Niedermayer --- libavfilter/vf_fieldhint.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_fieldhint.c b/libavfilter/vf_fieldhint.c index 26551ce7a8..3cfeb20a38 100644 --- a/libavfilter/vf_fieldhint.c +++ b/libavfilter/vf_fieldhint.c @@ -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); }