The debug memory allocation or "dmalloc" library has been designed as a drop in replacement for the system's `malloc', `realloc', `calloc', `free' and other memory management routines while providing powerful debugging facilities configurable at runtime. These facilities include such things as memory-leak tracking, fence-post write detection, file/line number reporting, and general logging of statistics. It also provides support for the debugging of threaded programs. Releases and documentation available online at http://dmalloc.com/.
The library is available as 32-bit and 64-bit:
Current version: v5.5.2-1