[PATCH] Remove all uses of talloc_autofree_context() from our code (except for test)

Andrew Bartlett abartlet at samba.org
Wed Jul 26 03:17:01 UTC 2017


On Tue, 2017-07-25 at 13:47 -0700, Jeremy Allison wrote:
> On Wed, Jul 26, 2017 at 08:38:37AM +1200, Andrew Bartlett wrote:
> > On Tue, 2017-07-25 at 13:28 -0700, Jeremy Allison wrote:
> > > 
> > > As pointed out by Volker on the phone, I'm conflating two issues
> > > here :-).
> > > That way I get talloc_autofree_context() removed from
> > > our code and hopefully will prevent anyone from
> > > re-adding it, but you all still get "smbcontrol smbd pool-usage"
> > > still working.
> > > 
> > > Does that sound like a plan ?
> > 
> > Yes.  (I'll look over the specific patch details later today).
> 
> Thanks, much appreciated.
> 
> Thinking about it some more, you're actually correct about
> this improving the libsmbclient libs without the null tracking
> removal change - the gnome VFS programs that use libsmbclient
> don't turn on null tracking. So I may have more room to experiment
> there..

I'm very glad to see this gone from ldb, because atexit() in a proper
public lib is just asking for trouble. 

> > > I hate you all equally (but at least I haven't wasted several
> > > months worth of work :-) :-) :-).
> > 
> > Don't worry, it was all worth it to have Volker and myself on a
> > unity
> > ticket ;-)
> 
> That's good management for you. Providing a target for everyone to
> stick pins in :-) :-).

I'm happy with the patches.  

Reviewed-by: Andrew Bartlett <abartlet at samba.org>

Andrew Bartlett
-- 
Andrew Bartlett
https://samba.org/~abartlet/
Authentication Developer, Samba Team         https://samba.org
Samba Development and Support, Catalyst IT   
https://catalyst.net.nz/services/samba







More information about the samba-technical mailing list