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

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

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

More information about the samba-technical mailing list