]> source.dussan.org Git - rspamd.git/commitdiff
Zero memory of pool allocator statistic.
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 25 Jul 2011 13:43:30 +0000 (17:43 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 25 Jul 2011 13:43:30 +0000 (17:43 +0400)
src/mem_pool.c

index 32eb4d78696b36a40c3f09318d13eb45bc2da657..dac5f8a93c761ec091f87aafd0e7a4bb702523a2 100644 (file)
@@ -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));