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![])); }