LDB hidden memory leaks

simo idra at samba.org
Mon Jul 12 16:10:39 MDT 2010


On Tue, 2010-07-13 at 08:05 +1000, Andrew Bartlett wrote:
> On Mon, 2010-07-12 at 16:56 +0300, Kamen Mazdrashki wrote:
> 
> > 
> > So, my question is (are):
> > 1. what do you thing about enforcing TALLOC_CTX casting to
> > be explicit?
> > 2. and if everyone agrees it is 'good thing', then is it feasible to
> > force
> >     callers to explicitly cast pointers to TALLOC_CTX* where used?
> 
> TALLOC_CTX is just void * in disguise, so no, it's not possible.

Even if it were I would not be thrilled by such a change.
Why you pass an argument is clear as soon as you look at the function
definition of the function you are calling.

Simo.

-- 
Simo Sorce
Samba Team GPL Compliance Officer <simo at samba.org>
Principal Software Engineer at Red Hat, Inc. <simo at redhat.com>



More information about the samba-technical mailing list