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

Gerald (Jerry) Carter jerry at samba.org
Thu Nov 30 05:35:21 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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?

I could live with that as long as the model makes sense.





cheers, jerry
=====================================================================
Samba                                    ------- http://www.samba.org
Centeris                         -----------  http://www.centeris.com
"What man is a man who does not make the world better?"      --Balian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFbm2ZIR7qMdg1EfYRAiHpAJ9MtjU1sKBiaqCC8PQkl/7b9gQIZgCgqtYA
LudTXRx8poPg/C+7MsQ/p1Y=
=6wng
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list