leakfinder - simple memory leak detector

Fetch the software.

This is a wrapper for C/Unix malloc() that helps you find memory leaks. There are lots of other tools to do this, such as valgrind and purify. The advantage of leakfinder is that it's tiny.

You do have to make some source code changes to use it, so it's not as convenient as the other tools.

On exit, leakfinder will report any allocations that did not get freed. The report shows the source filename, the line number, and a count of how many unfreed allocations there were.

If you want to turn leakfinder off but leave it installed in case you want to use it again later, you can add the compiler flag -DNO_LEAKFINDER. When compiled with this flag, leakfinder does nothing and adds zero overhead.

ACME Labs / Software / e