diff mbox series

[FFmpeg-devel,2/3] avfilter/vf_guided: Fix leak of frames

Message ID HE1PR0301MB215476905BD0BD93339C27848F509@HE1PR0301MB2154.eurprd03.prod.outlook.com
State Accepted
Commit 376e80ad7440cbb6e857ea1b48deb0b8cdf3ae90
Headers show
Series [FFmpeg-devel,1/3] avfilter/vf_guided: Don't free frame we don't own
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Andreas Rheinhardt May 14, 2021, 10:18 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavfilter/vf_guided.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/libavfilter/vf_guided.c b/libavfilter/vf_guided.c
index e10d397f2e..ce78507eb6 100644
--- a/libavfilter/vf_guided.c
+++ b/libavfilter/vf_guided.c
@@ -353,6 +353,7 @@  static int process_frame(FFFrameSync *fs)
                        s->planewidth[plane], s->planeheight[plane],
                        main_frame->linesize[plane] / 2, ref_frame->linesize[plane] / 2, out_frame->linesize[plane] / 2, (1 << s->depth) - 1.f);
     }
+    av_frame_free(&main_frame);
 
     return ff_filter_frame(outlink, out_frame);
 }