aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/mem_pool.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/mem_pool.c')
-rw-r--r--src/libutil/mem_pool.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/mem_pool.c b/src/libutil/mem_pool.c
index 7e3db68c1..4861a2127 100644
--- a/src/libutil/mem_pool.c
+++ b/src/libutil/mem_pool.c
@@ -629,6 +629,8 @@ rspamd_mempool_adjust_entry (struct rspamd_mempool_entry_point *e)
/* We still want to grow */
e->cur_suggestion *= (1 + (((double)sel_pos) / e->cur_suggestion)) * 1.5;
}
+
+ memset (e->elts, 0, sizeof (e->elts));
}
void