From LQWiki
valgrind is a debugging program that can be used to trace all kinds of memory allocation errors, like memory leaks.
Example Usage
The following will run the program "a.out" and check it for memory errors:
$valgrind --tool=memcheck --leak-check=full -v a.out
See also
- Debuggers for a list of debuggers.

This page is available under a