Mail Archives: djgpp/2000/01/20/16:50:14
Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> writes:
> On Thu, 20 Jan 2000, Andy wrote:
>
> > Is there any good programs to detect memory leaks, files left open,unfreed
> > memory!
>
> Try YAMD, its URL is in the FAQ. It finds problems with using memory.
>
> I'm not aware of any tool to find files left open (it's not a bug, in
> most cases, since all open files are automatically closed by the exit
> code). If you really need that, you can define a function that will be
> called on exit for each unclosed file handle.
YAMD will in some cases. If using fopen and buffered streams, it will
notice that the buffer was allocated and not freed (i.e. fclose). But
not explicitly.
--
Nate Eldredge
neldredge AT hmc DOT edu
- Raw text -