regdb_open()/regdb_close() a valid use for talloc_reference?

Jeremy Allison jra at samba.org
Wed Nov 29 18:28:18 GMT 2006


On Wed, Nov 29, 2006 at 01:26:51PM +0100, Volker Lendecke wrote:
> Hi!
> 
> While looking at the registry I'm close to using
> talloc_reference for the same purpose reg_db.c right now
> uses its internal refcount for.
> 
> We agreed that talloc_reference() is evil, but I think this
> use case would be a valid one.
> 
> Ok? Or should I implement a refcount myself?

If you're maintaining and extending the code
the correct decision is yours. Does the code
become clearer with talloc_reference ?

Jeremy.


More information about the samba-technical mailing list