diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-05-01 22:01:36 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-05-01 22:01:36 +0900 |
commit | f4c6479eeabc2b691f07f9421b7e7d59a7f53921 (patch) | |
tree | ca613f27a61ca58e9c5d5e87e69456b2120a696c | |
parent | d1f14bafb06862e4095aea4598c7625368f6af24 (diff) |
Fix xfree
Pointers allocated with `ruby_xmalloc` (`ALLOC` macro) must be freed
with `ruby_xfree`.
-rw-r--r-- | prism_compile.c | 2 |
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); } } |