We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb74892 commit c7945ebCopy full SHA for c7945eb
crates/interpreter/src/interpreter.rs
@@ -146,8 +146,10 @@ impl<'a> Interpreter<'a> {
146
147
/// Returns a copy of the interpreter's return value, if any.
148
#[inline]
149
- pub fn return_value(&self) -> Bytes {
150
- self.return_value_slice().to_vec().into()
+ pub fn return_value(&mut self) -> Bytes {
+ let return_data = self.return_value_slice().to_vec().into();
151
+ self.shared_memory.free_context_memory();
152
+ return_data
153
}
154
155
/// Returns a reference to the interpreter's return value, if any.
0 commit comments