Dmalloc is aCmemory debugger library written byGray Watson to assist programmers in finding a variety ofdynamic memoryallocation mistakes. It replaces parts (such asmalloc) of theC standard library provided by theoperating system orcompiler with its own versions, which produce information intended to help the programmer detect problematic code.
Dmalloc can findmemory leaks,off-by-one errors, and usage of invalid addresses in some library functions calls.