move adt_tree.c (virtual registry tree) to new talloc()

Gerald (Jerry) Carter jerry at samba.org
Fri Sep 2 21:47:52 GMT 2005


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

Folks,

Here's a small patch to move the ADT which forms the base for
our virtual registry tree to a talloc based structure.  Simple
patch but review welcome.

http://samba.org/~jerry/patches/adt_tree_talloc_v1.patch

The key parts of the removal of the unused free_func
tree node field and the replacement of the recursive
destroy() function with a single TALLOC_FREE.  This of course
implies that any void* stored in the tree need to be either
(a) allocated from the tree's own ctx or (b) are static
variables such as the REGISTRY_HOOK reg_hooks[] table
in reg_frontend.c





cheers, jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDGMiIIR7qMdg1EfYRAjfAAKCkysGDmNe5TsJUUNA4aOmRV0ArNQCfQJay
eOfnUFj9cCTrnLy4ggBpB6c=
=pJuV
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list