Hacker News

Detect memory leaks of C extensions with psutil and psleak

3 points by grodola ago | 1 comments

grodola [-]

I have released new psutil 7.2.0, which includes 2 new APIs to inspect C heap memory allocations.

I have also released a new tool called psleak, which detects memory leaks in C extension modules.

https://gmpy.dev/blog/2025/psutil-heap-introspection-apis

https://github.com/giampaolo/psleak/