Free tools -
On Linux -
Valgrind[
^]- for memory debugging, memory leak detection, and profiling.
On Windows -
CppCheck[
^]-
-Out of bounds checking
-Check the code for each class
-Checking exception safety
-etc.
and
Visual Leak Detector [
^]- memory leak detection system for Visual C++.