Fix xfree
Pointers allocated with `ruby_xmalloc` (`ALLOC` macro) must be freed with `ruby_xfree`.
This commit is contained in:
parent
d1f14bafb0
commit
f4c6479eea
@ -3717,7 +3717,7 @@ pm_multi_target_state_update(pm_multi_target_state_t *state)
|
|||||||
previous = current;
|
previous = current;
|
||||||
current = current->next;
|
current = current->next;
|
||||||
|
|
||||||
free(previous);
|
xfree(previous);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user