diff options
-rw-r--r-- | contrib/lc-btrie/btrie.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/lc-btrie/btrie.c b/contrib/lc-btrie/btrie.c index 899b05061..9d78caa9b 100644 --- a/contrib/lc-btrie/btrie.c +++ b/contrib/lc-btrie/btrie.c @@ -492,7 +492,7 @@ alloc_nodes(struct btrie *btrie, unsigned nchildren, unsigned ndata) } /* failed to find free hunk, allocate a fresh one */ - hunk = rspamd_mempool_alloc (btrie->mp, n_nodes * sizeof(node_t)); + hunk = rspamd_mempool_alloc0 (btrie->mp, n_nodes * sizeof(node_t)); if (hunk == NULL) longjmp (btrie->exception, BTRIE_ALLOC_FAILED); btrie->alloc_total += n_nodes * sizeof(node_t); |