From 21979cf98e2df41ee42e6a11f71491fc2ee1976c Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 5 Oct 2021 20:10:26 +0200 Subject: [PATCH] avfilter/vf_morpho: fix leak by not returning too early --- libavfilter/vf_morpho.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_morpho.c b/libavfilter/vf_morpho.c index 93ad6aed71..f91957ab81 100644 --- a/libavfilter/vf_morpho.c +++ b/libavfilter/vf_morpho.c @@ -892,7 +892,7 @@ copy: break; ret = erode(&s->h[p], &s->f[p], &s->SE[p], &s->Ty[1][p]); if (ret < 0) - return ret; + break; difference(&s->g[p], &s->h[p]); break; case TOPHAT: