How to detect memory leaks

Fernando Gleiser fgleiser at cactus.fi.uba.ar
Fri May 16 06:01:20 PDT 2003


On Thu, 15 May 2003, Vest.Michael wrote:

> Dear FreeBSD,
>
>      Do you know how to detect memory leaks in applications running on
> FreeBSD?
>      We have an application written in C that is running on FreeBSD 3.4 and
> 4.5. We
> suspect that there are some memory leaks in the application, but are unsure
> how to
> track them down. Do you know of any tools or procedures that we can use to
> determine
> where the leaks are?

You can try Electric Fence (devel/ElectricFence). It's a malloc() debugger



			Fer



More information about the freebsd-questions mailing list