/** Create a new RED-BLACK tree
*
*/
-rbtree_t *rbtree_create(rb_comparator_t compare, rb_free_t node_free, int flags)
+rbtree_t *rbtree_create(TALLOC_CTX *ctx, rb_comparator_t compare, rb_free_t node_free, int flags)
{
rbtree_t *tree;
if (!compare) return NULL;
- tree = talloc_zero(NULL, rbtree_t);
+ tree = talloc_zero(ctx, rbtree_t);
if (!tree) return NULL;
#ifndef NDEBUG