PR #24920 opened by Zhao Zhili (quink)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24920
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24920.patch

Regression since: a01246f079e


>From d698b555b9a7d8f2e3e895013738ea3039894608 Mon Sep 17 00:00:00 2001
From: Zhao Zhili <[email protected]>
Date: Wed, 7 Oct 2026 21:20:15 +0800
Subject: [PATCH] avfilter/vf_gainmap: fix leak of the gain map parameters

Regression since: a01246f079e
---
 libavfilter/vf_gainmap.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/vf_gainmap.c b/libavfilter/vf_gainmap.c
index 7b8b81614b..b8f6c89bee 100644
--- a/libavfilter/vf_gainmap.c
+++ b/libavfilter/vf_gainmap.c
@@ -742,6 +742,7 @@ static av_cold void uninit(AVFilterContext *ctx)
     av_freep(&s->slice_min);
     av_freep(&s->slice_max);
     av_freep(&s->slice_sum);
+    av_freep(&s->params);
 }
 
 static const AVFilterPad gainmap_inputs[] = {
-- 
2.52.0

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

Reply via email to