From 8e078a045713103085f6898fec16d30950b158c1 Mon Sep 17 00:00:00 2001 From: vms Date: Thu, 20 Aug 2020 19:30:23 +0300 Subject: [PATCH 1/2] disable removing complex objects --- src/interpreter/instructions/records.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/interpreter/instructions/records.rs b/src/interpreter/instructions/records.rs index fc81809..f125f4c 100644 --- a/src/interpreter/instructions/records.rs +++ b/src/interpreter/instructions/records.rs @@ -198,8 +198,6 @@ where // TODO: check let string = String::from_utf8(string_mem).unwrap(); values.push_back(InterfaceValue::String(string)); - - utils::deallocate(instance, instruction, string_offset as _, string_size as _)?; } else { values.push_back(InterfaceValue::String("".to_string())); } @@ -218,8 +216,6 @@ where )?; values.push_back(InterfaceValue::ByteArray(byte_array)); - - utils::deallocate(instance, instruction, array_offset as _, array_size as _)?; } else { values.push_back(InterfaceValue::ByteArray(vec![])); } From d4296694288a08a208164d678593f7a52ff4deef Mon Sep 17 00:00:00 2001 From: vms Date: Sun, 23 Aug 2020 04:09:25 +0300 Subject: [PATCH 2/2] bump version --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 94c137b..efaaf9f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -186,7 +186,7 @@ checksum = "078775d0255232fb988e6fccf26ddc9d1ac274299aaedcedce21c6f72cc533ce" [[package]] name = "wasmer-interface-types-fl" -version = "0.17.1" +version = "0.17.2" dependencies = [ "nom", "safe-transmute", diff --git a/Cargo.toml b/Cargo.toml index 50c527c..31721b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasmer-interface-types-fl" -version = "0.17.1" +version = "0.17.2" description = "WebAssembly Interface Types library for Wasmer" license = "MIT" authors = ["The Wasmer Engineering Team "]