summaryrefslogtreecommitdiffstats
path: root/JavaScriptCore/wtf/BumpPointerAllocator.h
diff options
context:
space:
mode:
Diffstat (limited to 'JavaScriptCore/wtf/BumpPointerAllocator.h')
-rw-r--r--JavaScriptCore/wtf/BumpPointerAllocator.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/JavaScriptCore/wtf/BumpPointerAllocator.h b/JavaScriptCore/wtf/BumpPointerAllocator.h
index 3deefe6..682283c 100644
--- a/JavaScriptCore/wtf/BumpPointerAllocator.h
+++ b/JavaScriptCore/wtf/BumpPointerAllocator.h
@@ -138,10 +138,7 @@ private:
void destroy()
{
- // Don't call deallocate on allocation, because allocation is *inside* allocation,
- // and it will get deallocated before deallocate has completed!
- PageAllocation allocation = m_allocation;
- allocation.deallocate();
+ m_allocation.deallocate();
}
static BumpPointerPool* ensureCapacityCrossPool(BumpPointerPool* previousPool, size_t size)