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

James Peach jpeach at samba.org
Sat Sep 3 07:08:32 GMT 2005


On Fri, 2005-09-02 at 16:47 -0500, Gerald (Jerry) Carter wrote:
> -----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

Looks OK to me.

-- 
James Peach | jpeach at samba.org



More information about the samba-technical mailing list