talloc_reference() (again)

Michael Adam obnox at samba.org
Thu Oct 17 01:52:08 MDT 2013


On 2013-10-17 at 14:54 +1300, Andrew Bartlett wrote:
> On Wed, 2013-10-16 at 07:42 -0400, Simo wrote:
> 
> > +1 the evilness of talloc_reference is that an arbitrary *user* of the
> > memory can change the semantics for *all* others, this is a recipe for
> > disaster and the reason this API must be discouraged and eventually
> > dumped.
> 
> This is perhaps the best explanation of the issues. 

I agree that Simo has summarized the problem very well!

> ... and I'm very happy to review patches ...

Hey, how about providing patches? ;-)

I am also happy to review, but you (Andrew) as one of the main
users and even advocates of references seem to be a natural
candidate for changing the code along the lines discussed.

Cheers - Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 215 bytes
Desc: Digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20131017/98d49474/attachment.pgp>


More information about the samba-technical mailing list