From b55de590f3344dcedaafba8bcf2a249c9f0c4fc5 Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Tue, 12 Dec 2023 18:32:18 -0800 Subject: [PATCH] [PRISM] Fix st_table memory leak Co-authored-by: Matthew Draper --- prism_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prism_compile.c b/prism_compile.c index 6fd345759b4184..db4c64ccea5c1d 100644 --- a/prism_compile.c +++ b/prism_compile.c @@ -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);