Skip Menu |

This queue is for tickets about the Linux-Smaps-Tiny CPAN distribution.

Report information
The Basics
Id: 78029
Status: resolved
Priority: 0/
Queue: Linux-Smaps-Tiny

People
Owner: Nobody in particular
Requestors: MENDEL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: memory leak in
Calling get_smaps_summary() leaks memory: mendel@vger:~/src/linux-smaps-tiny$ perl -MLinux::Smaps::Tiny=get_smaps_summary -E 'sub pd { say get_smaps_summary($$)->{Private_Dirty} } pd; get_smaps_summary($$) for 0 .. 999; pd;' 464 876 I have a patch that seems to fix it, but i'm not experienced with XS so it might as well be completely wrong: mendel@vger:~/src/linux-smaps-tiny/.build/ro4QfSZ04s$ perl -MLinux::Smaps::Tiny=get_smaps_summary -E 'sub pd { say get_smaps_summary($$)->{Private_Dirty} } pd; get_smaps_summary($$) for 0 .. 999; pd;' 772 772 I pushed the patch to https://github.com/mendel/linux-smaps-tiny/tree/mortalize_HV
Thanks a lot for the report, I've uploaded 0.09 with this fix.