Valgrind is an award-winning instrumentation framework for building dynamic analysis tools. There are Valgrind tools that can automatically detect many memory management and threading bugs, and profile your programs in detail.
For each article you buy, we donate part of our benefit to Valgrind. This way we all win :)
More information: http://valgrind.org/
Valgrind stuff available right now: