[PATCH 0/4] perf tools: Fix memory issues
From: Michalis Niarchos via B4 Relay
Date: Mon Aug 03 2026 - 06:41:22 EST
Running:
$ perf kvm stat record -a sleep 10
gives this output:
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 1.361 MB perf.data.guest ]
double free or corruption (!prev)
In the process of resolving this, I came across some memory leaks.
Signed-off-by: Michalis Niarchos <michael.niarchos@xxxxxxxxx>
---
Michalis Niarchos (4):
perf tools: Fix memory leak in cmd_kvm()
perf tools: Fix memory leak in kvm_events_report()
perf tools: Fix double free and memory leak in kvm_events_record()
perf tools: Fix memory leak in cmd_kvm()
tools/perf/builtin-kvm.c | 63 ++++++++++++++++++++++++++++--------------------
1 file changed, 37 insertions(+), 26 deletions(-)
---
base-commit: 2162d9b24ba1a9a402baabe5382b33e792aa074f
change-id: 20260731-perf-kvm-fixes-a17f0aa048ad
Best regards,
--
Michalis Niarchos <michael.niarchos@xxxxxxxxx>