tools to determine memory leak in a c/c++ code [closed] tools to determine memory leak in a c/c++ code [closed] unix unix

tools to determine memory leak in a c/c++ code [closed]


If you're talking about static analysis then there's cppcheck (among many others)

If you're talking about a runtime checker (which will be way more accurate and reliable than static analysis) there's valgrind

There's loads of other tools available. Check out the links above for more information

Purify will work on AIX (though it's not free.

HP has the wdb debugger, and it's capable of detecting memory leaks.


Although not a specialized tool for detecting memory leaks another option is the Boehm-Demers-Weiser garbage collector available from HP Labs.

It works as a replacement for new and malloc.

Here are instructions to use it as a leak detector. It is, or was, used by Mozilla as a leak detector for Firefox. If i recall correctly it was also used by Mono and DotGNU Portable.NET as a gc.