The Valgrind Jewel If you work with Linux on an IA-32 hardware - you're lucky. You can use Valgrind. Valgrind is free software (GPL) that automatically detects all sorts of memory problems - over-writing memory outside array bounds, double-free, memory leaks, etc. Valgrind is rather easy to run - you just run it with some flags, telling it which program to run. A good use of valgrind: valgrind --leak-check=yes --num-callers=15