Finding free() and ­realloc() Problems
MemoryScape detects problems that occur when you allocate, reallocate, and free heap memory.
This memory is usually allocated by the malloc(), calloc(), and realloc() functions, and deallocated by the free() and realloc() functions. In C++, MemoryScape tracks the new and delete operators. If your Fortran programs and libraries use the heap API, MemoryScape tracks their dynamic memory use. Some Fortran systems use the heap API for assumed-shape, automatic, and allocatable arrays. See your system’s man pages and other documentation for more information.