From 6ed18cb348c1a1ea84fa8f600db55f8b5fa0f2f9 Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Wed, 12 Aug 2015 15:20:34 -0700 Subject: [PATCH] Fix chunk_dalloc_arena() re: zeroing due to purge. --- src/chunk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chunk.c b/src/chunk.c index 5ad02816..b5b8f0d2 100644 --- a/src/chunk.c +++ b/src/chunk.c @@ -584,7 +584,7 @@ chunk_dalloc_arena(arena_t *arena, chunk_hooks_t *chunk_hooks, void *chunk, committed = chunk_hooks->decommit(chunk, size, 0, size, arena->ind); } - zeroed = !committed || chunk_hooks->purge(chunk, size, 0, size, + zeroed = !committed || !chunk_hooks->purge(chunk, size, 0, size, arena->ind); chunk_record(arena, chunk_hooks, &arena->chunks_szad_retained, &arena->chunks_ad_retained, false, chunk, size, zeroed, committed);