strange memory leak (in ldb?)

Volker Lendecke Volker.Lendecke at SerNet.DE
Fri Nov 5 02:59:19 MDT 2010


On Fri, Nov 05, 2010 at 07:00:01AM +0100, Stefan (metze) Metzmacher wrote:
> Hi Kamen,
> 
> it seems you're right. I have a standalone tool to demonstrate it.
> 
> http://gitweb.samba.org/?p=metze/misc/junkcode.git;a=blob;f=malloc-reclaim/malloc-reclaim.c
> 
> I wonder if there's a way to avoid that memory fragmentation.
> Also the heap is still there at the last mybreak().

The most likely fix for this would be to go with
http://samba.org/~tridge/junkcode/alloc_mmap/

Volker


More information about the samba-technical mailing list