From f4c6479eeabc2b691f07f9421b7e7d59a7f53921 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 1 May 2024 22:01:36 +0900 Subject: [PATCH] Fix xfree Pointers allocated with `ruby_xmalloc` (`ALLOC` macro) must be freed with `ruby_xfree`. --- prism_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prism_compile.c b/prism_compile.c index 909e6b26da..6fc70aefb6 100644 --- a/prism_compile.c +++ b/prism_compile.c @@ -3717,7 +3717,7 @@ pm_multi_target_state_update(pm_multi_target_state_t *state) previous = current; current = current->next; - free(previous); + xfree(previous); } }