From 8e078a045713103085f6898fec16d30950b158c1 Mon Sep 17 00:00:00 2001 From: vms Date: Thu, 20 Aug 2020 19:30:23 +0300 Subject: [PATCH] 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![])); }