Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index c11a00528d02e37bce4826d5cf180bf85c795b78..092e91edc56d87778e09efe300b5f076ab8dfff0 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -694,6 +694,10 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_Fix) { |
void Runtime::FreeArrayBuffer(Isolate* isolate, |
JSArrayBuffer* phantom_array_buffer) { |
+ if (phantom_array_buffer->should_be_freed()) { |
+ ASSERT(phantom_array_buffer->is_external()); |
+ free(phantom_array_buffer->backing_store()); |
+ } |
if (phantom_array_buffer->is_external()) return; |
size_t allocated_length = NumberToSize( |