From b7f7c11ea7405e92c5a11cf106008a99c603a015 Mon Sep 17 00:00:00 2001 From: Igor Putovny Date: Fri, 31 May 2024 16:19:56 +0200 Subject: [PATCH] Use sl_allocz() for node allocation --- proto/aggregator/aggregator.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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); } /*