diff options
Diffstat (limited to 'src/asm2wasm.h')
-rw-r--r-- | src/asm2wasm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/asm2wasm.h b/src/asm2wasm.h index f39c50871..9e7bc7979 100644 --- a/src/asm2wasm.h +++ b/src/asm2wasm.h @@ -519,6 +519,7 @@ void Asm2WasmBuilder::processAsm(Ref ast) { if (type != WasmType::none) { // wasm has no imported constants, so allocate a global, and we need to write the value into that allocateGlobal(name, type, true, import->module, import->base); + delete import; } else { wasm.addImport(import); } |