From: Vsevolod Stakhov Date: Mon, 25 Jul 2011 13:43:30 +0000 (+0400) Subject: Zero memory of pool allocator statistic. X-Git-Tag: 0.4.1~8 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=be8c6f0ce040a5f9d17d17b356a97712d912f7b1;p=rspamd.git Zero memory of pool allocator statistic. --- diff --git a/src/mem_pool.c b/src/mem_pool.c index 32eb4d786..dac5f8a93 100644 --- a/src/mem_pool.c +++ b/src/mem_pool.c @@ -178,6 +178,7 @@ memory_pool_new (gsize size) #else # error No mmap methods are defined #endif + memset (map, 0, sizeof (memory_pool_stat_t)); } new = g_slice_alloc (sizeof (memory_pool_t));