Index: src/wasm/wasm-js.cc |
diff --git a/src/wasm/wasm-js.cc b/src/wasm/wasm-js.cc |
index 0a81a528895a5118947ea2d0fb5c53a3c4379027..0354934c30446e2dec2330b5516211147e40ea26 100644 |
--- a/src/wasm/wasm-js.cc |
+++ b/src/wasm/wasm-js.cc |
@@ -698,6 +698,7 @@ void WebAssemblyMemoryGrow(const v8::FunctionCallbackInfo<v8::Value>& args) { |
thrower.RangeError("Unable to grow instance memory."); |
return; |
} |
+ i::wasm::DetachWebAssemblyMemoryBuffer(i_isolate, old_buffer); |
v8::ReturnValue<v8::Value> return_value = args.GetReturnValue(); |
return_value.Set(ret); |
} |