FreeBSD.software
Home/devel/leaktracer

leaktracer

2.4devel

Trace and analyze memory leaks in C++ programs

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.

$pkg install leaktracer
www.andreasen.org/LeakTracer
Origin
devel/leaktracer
Size
36.0KiB
License
PD
Maintainer
ports@FreeBSD.org
Dependencies
1 packages
Required by
0 packages

Dependencies (1)