Re: [PATCH 0/2] perf kvm: Fix memory leaks

From: Michalis Niarchos

Date: Thu Aug 13 2026 - 16:18:36 EST




On August 12, 2026 11:07:58 PM GMT+02:00, Namhyung Kim <namhyung@xxxxxxxxxx> wrote:
>On Fri, 07 Aug 2026 17:08:34 +0200, Michalis Niarchos wrote:
>> Running ./perf kvm stat report with ASan, revealed some memory leaks:
>>
>> ==206006==ERROR: LeakSanitizer: detected memory leaks
>>
>> Direct leak of 72 byte(s) in 3 object(s) allocated from:
>> #0 0x7ff86bf2bea9 in calloc (/usr/lib/libasan.so.8+0x12bea9) (BuildId: 7f2845989b820f536270e19ec47df085ae89a675)
>> #1 0x55f42795a0d5 in zalloc ../../lib/zalloc.c:8
>> #2 0x55f42782d7f4 in per_vcpu_record /home/mike/git/linux/tools/perf/builtin-kvm.c:929
>>
>> [...]
>Applied to perf-tools-next, thanks!
>
>Best regards,
>Namhyung
>
Thanks for reviewing and applying!

Kind regards,
Michalis