diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-09 15:55:35 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-09 15:55:35 +0000 |
commit | 71d33dd221fde66f16a969371adccdce278de50c (patch) | |
tree | a9a3b40638b1c67b01e9868d268e448f7d0d0b7e /contrib | |
parent | 2823044f85ec1bf8c4cdcb3244e89f4750cf909e (diff) | |
download | rspamd-71d33dd221fde66f16a969371adccdce278de50c.tar.gz rspamd-71d33dd221fde66f16a969371adccdce278de50c.zip |
[Minor] Zero new nodes in btrie
Diffstat (limited to 'contrib')
-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); |