ccmalloc is a memory profiler that detects memory leaks, detects
multiple deallocation of same data, detects under writes and over
writes, detects writes to already deallocated data, and provides
allocation and deallocation statistics.
If a program is compiled using the ccmalloc library, it generates a
log file after execute that details all memory leaks including the
call stack for the offending (leaking) allocation.
- To use this on a C program called test1.c, try
ccmalloc gcc test1.c
For more details, see USAGE
- If you want to change the default behavior, copy ccmalloc.cfg to your local or home directory
with the name .ccmalloc
- Older (but
still very useful) ccmalloc site
- Note: Locally, we only have ccmalloc installed on the
- An alternative to ccmalloc is Valgrind. To use this,
simple run valgrind on an existing executable (e.g., valgrind ls).
You do not need to compile with a special library as you do with ccmalloc.