From c732f73e940392471d42c8b118fc533f784eef4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E8=8C=82=E6=BA=90?= Date: Tue, 10 Jun 2025 01:46:43 +0000 Subject: [PATCH] stackprobe: fix memleak when posting flamgraph to pyroscope MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 何茂源 --- src/probes/extends/ebpf.probe/src/stackprobe/stackprobe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/probes/extends/ebpf.probe/src/stackprobe/stackprobe.c b/src/probes/extends/ebpf.probe/src/stackprobe/stackprobe.c index 9534fb09..3a88f293 100644 --- a/src/probes/extends/ebpf.probe/src/stackprobe/stackprobe.c +++ b/src/probes/extends/ebpf.probe/src/stackprobe/stackprobe.c @@ -2227,6 +2227,8 @@ void iter_histo_tbl(struct proc_stack_trace_histo_s *proc_histo, struct post_ser curl_post(svg_mng, post_server, &post_info, en_type, proc_histo->proc_id); } + free(post_info.buf_start); + return; } -- Gitee