Index: src/zone/accounting-allocator.cc |
diff --git a/src/zone/accounting-allocator.cc b/src/zone/accounting-allocator.cc |
index 623cb5718af5148cda57bfd015959bee1b7ff357..663ea321a4494e65d2b1205cd8e20ea60ab863ca 100644 |
--- a/src/zone/accounting-allocator.cc |
+++ b/src/zone/accounting-allocator.cc |
@@ -29,6 +29,7 @@ Segment* AccountingAllocator::AllocateSegment(size_t bytes) { |
void AccountingAllocator::FreeSegment(Segment* memory) { |
base::NoBarrier_AtomicIncrement( |
¤t_memory_usage_, -static_cast<base::AtomicWord>(memory->size())); |
+ memory->ZapHeader(); |
free(memory); |
} |