From beded39b19dc212fb8ac1175acb72f415c513e35 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 3 Oct 2021 08:06:11 +0200 Subject: [PATCH] avfilter/vf_morpho: Fix leak of output frame on error Reviewed-by: Paul B Mahol Signed-off-by: Andreas Rheinhardt --- libavfilter/vf_morpho.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_morpho.c b/libavfilter/vf_morpho.c index cb751f7523..ce62c86f91 100644 --- a/libavfilter/vf_morpho.c +++ b/libavfilter/vf_morpho.c @@ -932,6 +932,7 @@ copy: out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base); return ff_filter_frame(outlink, out); fail: + av_frame_free(&out); av_frame_free(&in); return ret; }