So I wrote a custom allocator that tracks allocations and can detect leaks, it's similar to GPA but only acuses leaks if the allocated memory is not referenced anywhere. It uses comptime to generate a code that will visit your application searching for pointers, because of this it requires a bit extra work.
The idea behind this is, that programs doesnt need to free memory at the end, the OS aready does this for you, but GPA requires you to free memory otherwise you will endup with a lot of false positives.
As a bonus you can check leaks at anytime.
What you guys think?
https://gist.github.com/lassade/c6c00d377cff8420904598b1874c02c6