Retraction: Memory leak patch

Esh, Andrew AEsh at tricord.com
Fri Oct 5 14:54:19 GMT 2001


Yes, this is exactly what I'm seeing. It's hard to choose a place in the
code to do this, if there even is one.

-----Original Message-----
From: Tim Potter [mailto:tpot at samba.org]
Sent: Friday, October 05, 2001 4:44 PM
To: Esh, Andrew
Cc: Samba-Technical (E-mail)
Subject: Re: Retraction: Memory leak patch


Esh, Andrew writes:

> The patch I submitted earlier today causes segfaults. Do not use it.

At a guess this is probably because tallocated memory is being
referenced after the talloc context has been freed.  Currently in
winbind there is no clear policy concerning the lifetime of
talloc contexts which is the cause of the memory leaks in the
first place. 

The rewrite of this code should fix it.  Step #1 is to hide all
the connection making and breaking behind a connection manager
object.  Step #2 is to modify the connection manager so that each
RPC call starts with a new talloc context, the required data is
copied out and the talloc context disposed.

I'm about 85% of the way through step #1 at the moment.


Tim.
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the samba-technical mailing list