[cvs] memory leaks

Tom Anderson tanderso at oac-design.com
Fri Dec 31 07:23:27 CET 2004


On Tue, 2004-12-28 at 10:18, Matthias Andree wrote:
> David Relson <relson at osagesoftware.com> writes:
> 
> > The memory "leaks" you've been fixing aren't worth bothering about,
> > IMHO.  Memory that's allocated once can be cleaned up by the operating
> > system.  When multiple blocks of memory are allocated and not released
> > and cause program size to grow and grow, _then_ there's a memory leak
> > that needs to be fixed.
> 
> They were quick to find and eliminate, I wanted to be sure that no
> larger ones were waiting so I fixed the small ones that they could not
> clutter my screen. "make check" reports no leaks at this time via
> Boehm-GC.
> 
> I recently fixed a rather embarrassing HUGE leak in leafnode after a bug
> report ("all the way up to 256 MB") and thought checking bogofilter and
> cleaning up deallocation responsibilities wouldn't hurt.

I, for one, appreciate zero memory leaks, no matter how small or
seemingly insignificant.  Good job.  Don't let David intimidate you into
explaining away the fixes as debugging convenience ;)

Tom






More information about the bogofilter-dev mailing list