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