PR #24616 opened by michaelni
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24616
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24616.patch

Found-by: zhang xingxing
Fixes: memleak
Fixes: LFJjjQFCJZv6



>From fe325da76bb38071d45d685bc1554da9a4666c66 Mon Sep 17 00:00:00 2001
From: zhang xingxing <[email protected]>
Date: Mon, 21 Sep 2026 21:34:30 +0200
Subject: [PATCH] avfilter/vf_geq: free the pixel sums of every plane

Found-by: zhang xingxing
Fixes: memleak
Fixes: LFJjjQFCJZv6
---
 libavfilter/vf_geq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_geq.c b/libavfilter/vf_geq.c
index 1256bbe971..fc3dd6740e 100644
--- a/libavfilter/vf_geq.c
+++ b/libavfilter/vf_geq.c
@@ -514,7 +514,7 @@ static av_cold void geq_uninit(AVFilterContext *ctx)
         for (int j = 0; j < MAX_NB_THREADS; j++)
             av_expr_free(geq->e[i][j]);
     for (i = 0; i < NB_PLANES; i++)
-        av_freep(&geq->pixel_sums);
+        av_freep(&geq->pixel_sums[i]);
 }
 
 static const AVFilterPad geq_inputs[] = {
-- 
2.52.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to