blob: b5ab493ea7c6e18f7309309a2d3c84a63db5abd6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
LeakTracer is a small tool for checking C++ programs for memory leaks. Run
your program using the provided LeakCheck script. It uses the LD_PRELOAD
feature to "overlay" some functions on top of your functions (no recompile
needed).
LeakTracer uses gdb to print out the exact line where memory was allocated
but not freed -- this means you have to free all dynamically allocated data.
LeakTracer also overrides the global operator new and operator delete --
this will give problems if you override them as well.
LeakTracer traces only new/delete calls; it does not look at traditional
malloc/free/realloc.
|