Fix xfree

Pointers allocated with `ruby_xmalloc` (`ALLOC` macro) must be freed
with `ruby_xfree`.
This commit is contained in:
Nobuyoshi Nakada 2024-05-01 22:01:36 +09:00
parent d1f14bafb0
commit f4c6479eea
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -3717,7 +3717,7 @@ pm_multi_target_state_update(pm_multi_target_state_t *state)
previous = current;
current = current->next;
free(previous);
xfree(previous);
}
}