Skip to content

Commit

Permalink
[PRISM] Fix st_table memory leak
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Draper <matthew@trebex.net>
  • Loading branch information
jhawthorn and matthewd committed Dec 13, 2023
1 parent a3b48ac commit b55de59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prism_compile.c
Expand Up @@ -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)) {
ADD_INSN(ret, &dummy_line_node, leave);
Expand Down

0 comments on commit b55de59

Please sign in to comment.