| Index: src/wasm/wasm-module.cc
|
| diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc
|
| index b0b913406395005f5c1bb418434fd0089079dc26..7a05006d3ffcd591e2bdec7591c4c98ff586a43c 100644
|
| --- a/src/wasm/wasm-module.cc
|
| +++ b/src/wasm/wasm-module.cc
|
| @@ -515,6 +515,9 @@ int32_t CompileAndRunWasmModule(Isolate* isolate, const byte* module_start,
|
| ModuleResult result = DecodeWasmModule(isolate, &zone, module_start,
|
| module_end, false, kWasmOrigin);
|
| if (result.failed()) {
|
| + if (result.val) {
|
| + delete result.val;
|
| + }
|
| // Module verification failed. throw.
|
| std::ostringstream str;
|
| str << "WASM.compileRun() failed: " << result;
|
|
|