summaryrefslogtreecommitdiff
path: root/prism/util/pm_string_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'prism/util/pm_string_list.c')
-rw-r--r--prism/util/pm_string_list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/prism/util/pm_string_list.c b/prism/util/pm_string_list.c
index d49e4ed734..f6c2145987 100644
--- a/prism/util/pm_string_list.c
+++ b/prism/util/pm_string_list.c
@@ -12,7 +12,7 @@ pm_string_list_append(pm_string_list_t *string_list, pm_string_t *string) {
string_list->capacity *= 2;
}
- string_list->strings = realloc(string_list->strings, string_list->capacity * sizeof(pm_string_t));
+ string_list->strings = xrealloc(string_list->strings, string_list->capacity * sizeof(pm_string_t));
if (string_list->strings == NULL) abort();
}
@@ -24,5 +24,5 @@ pm_string_list_append(pm_string_list_t *string_list, pm_string_t *string) {
*/
void
pm_string_list_free(pm_string_list_t *string_list) {
- free(string_list->strings);
+ xfree(string_list->strings);
}
an>Fix crash during compactionPeter Zhu 2023-03-14ObjectSpace::WeakMap: fix compaction supportJean Boussier 2023-03-10Mark weak maps as write barrier protectedJean Boussier 2023-03-10Move WeakMap and WeakKeyMap code to weakmap.cPeter Zhu