If you're on Linux, you should give Valgrind a try.