[FFmpeg-devel] [PATCH 1/5] avfilter/vf_morpho: Fix leak of output frame on error
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Sun Oct 3 12:46:24 EEST 2021
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
libavfilter/vf_morpho.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavfilter/vf_morpho.c b/libavfilter/vf_morpho.c
index 13d58c4194..ac561c017b 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;
}
--
2.30.2
More information about the ffmpeg-devel
mailing list