mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
fix decref tuple values
This commit is contained in:
parent
17d23bd42a
commit
e2d1d9e2cd
1 changed files with 3 additions and 0 deletions
|
|
@ -458,6 +458,9 @@ pub const Interpreter = struct {
|
|||
temp_binds.items.len = 0;
|
||||
}
|
||||
|
||||
// Decref args after body evaluation (caller transfers ownership)
|
||||
defer if (params.len > 0) args_tuple_value.decref(&self.runtime_layout_store, roc_ops);
|
||||
|
||||
defer self.trimBindingList(&self.bindings, base_binding_len, roc_ops);
|
||||
|
||||
// Evaluate body, handling early returns at function boundary
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue