1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/devel/leaktracer/pkg-descr
Sergey A. Osokin 1c52d085f0 Add LeakTracer - a small tool for checking a C++ program for memory leaks.
Submitted by:	Alexey Dokuchaev <danfe@regency.nsu.ru>
2004-02-04 12:13:23 +00:00

16 lines
687 B
Plaintext

LeakTracer is a small tool for checking a C++ program for memory leaks.
To use LeakTracer, 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 the memory was allocated
and not freed -- this of course 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/new[] and delete calls -- it does not look at
malloc/free/realloc.
WWW: http://www.andreasen.org/LeakTracer/