mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 13:34:17 +02:00
[PRISM] Fix st_table memory leak
Co-authored-by: Matthew Draper <matthew@trebex.net>
This commit is contained in:
parent
a3b48ac9ad
commit
b55de590f3
1 changed files with 1 additions and 1 deletions
|
@ -5079,7 +5079,7 @@ pm_compile_node(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *const ret,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
free(index_lookup_table);
|
st_free_table(index_lookup_table);
|
||||||
|
|
||||||
if (!PM_NODE_TYPE_P(scope_node->ast_node, PM_ENSURE_NODE)) {
|
if (!PM_NODE_TYPE_P(scope_node->ast_node, PM_ENSURE_NODE)) {
|
||||||
ADD_INSN(ret, &dummy_line_node, leave);
|
ADD_INSN(ret, &dummy_line_node, leave);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue