]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Reset old stats
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 23 Aug 2017 07:24:33 +0000 (08:24 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 23 Aug 2017 07:24:51 +0000 (08:24 +0100)
src/libutil/mem_pool.c

index 7e3db68c11db8952736bad26b4309da8ec1de595..4861a2127856fe2ba1f55217b160d52c76f36599 100644 (file)
@@ -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