diff mbox series

[FFmpeg-devel,1/5] avfilter/vf_morpho: Fix leak of output frame on error

Message ID AM7PR03MB6660AFC22D589DF34CB804698FAD9@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit beded39b19dc212fb8ac1175acb72f415c513e35
Headers show
Series [FFmpeg-devel,1/5] avfilter/vf_morpho: Fix leak of output frame on error | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Oct. 3, 2021, 9:46 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavfilter/vf_morpho.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Paul B Mahol Oct. 3, 2021, 9:51 a.m. UTC | #1
ok
diff mbox series

Patch

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