mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Fix memory leak in constant ID list in prism
This commit is contained in:
parent
b48add3c65
commit
4113dcc4ae
Notes:
git
2024-09-24 14:24:04 +00:00
1 changed files with 1 additions and 0 deletions
|
@ -1771,6 +1771,7 @@ pm_eval_make_iseq(VALUE src, VALUE fname, int line,
|
|||
pm_scope_node_t *prev = result.node.previous;
|
||||
while (prev) {
|
||||
pm_scope_node_t *next = prev->previous;
|
||||
pm_constant_id_list_free(&prev->locals);
|
||||
ruby_xfree(prev);
|
||||
prev = next;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue