diff --git a/proto/aggregator/aggregator.c b/proto/aggregator/aggregator.c index c57d421b..3aa1e52a 100644 --- a/proto/aggregator/aggregator.c +++ b/proto/aggregator/aggregator.c @@ -82,12 +82,7 @@ is_leaf(const struct trie_node *node) static struct trie_node * create_new_node(slab *trie_slab) { - struct trie_node *new = sl_alloc(trie_slab); - assert(new != NULL); - *new = (struct trie_node) { 0 }; - assert(new->bucket == NULL); - - return new; + return sl_allocz(trie_slab); } /*