Alloc from the passed context
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 18 Jun 2014 11:39:14 +0000 (12:39 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 18 Jun 2014 11:39:14 +0000 (12:39 +0100)
src/lib/rbtree.c

index 5e6de50..27d2f2b 100644 (file)
@@ -113,7 +113,7 @@ rbtree_t *rbtree_create(TALLOC_CTX *ctx, rb_comparator_t compare, rb_free_t node
 
        if (!compare) return NULL;
 
-       tree = talloc_zero(NULL, rbtree_t);
+       tree = talloc_zero(ctx, rbtree_t);
        if (!tree) return NULL;
 
 #ifndef NDEBUG