summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-05-01 22:01:36 +0900
committerNobuyoshi Nakada <[email protected]>2024-05-01 22:01:36 +0900
commitf4c6479eeabc2b691f07f9421b7e7d59a7f53921 (patch)
treeca613f27a61ca58e9c5d5e87e69456b2120a696c
parentd1f14bafb06862e4095aea4598c7625368f6af24 (diff)
Fix xfree
Pointers allocated with `ruby_xmalloc` (`ALLOC` macro) must be freed with `ruby_xfree`.
-rw-r--r--prism_compile.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}