[FFmpeg-cvslog] avfilter/vf_morpho: Fix leak of output frame on error

Andreas Rheinhardt git at videolan.org
Mon Oct 4 18:36:48 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Oct  3 08:06:11 2021 +0200| [beded39b19dc212fb8ac1175acb72f415c513e35] | committer: Andreas Rheinhardt

avfilter/vf_morpho: Fix leak of output frame on error

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=beded39b19dc212fb8ac1175acb72f415c513e35
---

 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;
 }



More information about the ffmpeg-cvslog mailing list