If you are on Linux then valgrind is the obvious choice but there are plenty of other options of varying complexity levels.

For Windows mpatrol or leakage or google-perftools might be worth a look.