Valgrind

http://www.cprogramming.com/debugging/valgrind.html