diff --git a/src/probes/extends/ebpf.probe/src/stackprobe/stackprobe.c b/src/probes/extends/ebpf.probe/src/stackprobe/stackprobe.c index 9534fb092c12156c81326c13c363a3ab0ea35fdc..54a80c022f0074e6a8bf2ddc7f23fd557cbe19ec 100644 --- a/src/probes/extends/ebpf.probe/src/stackprobe/stackprobe.c +++ b/src/probes/extends/ebpf.probe/src/stackprobe/stackprobe.c @@ -2227,6 +2227,9 @@ 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); } + if (post_info.post_flag && post_info.buf) { + free(post_info.buf); + } return; }