mallocest
mallocest is a debugging tool used to detect memory leaks and other memory-related errors in C and C++ programs. It is a library that can be linked into a program to provide runtime memory allocation tracking. When a program is compiled with mallocest, it intercepts calls to memory allocation functions like malloc, calloc, and realloc, and records information about each allocation. This information includes the size of the allocation, the file and line number where it occurred, and a backtrace of the call stack.
When the program exits, mallocest analyzes the recorded allocation data. If any memory that was allocated has
To use mallocest, developers typically compile their code with specific flags to link the mallocest library.