summaryrefslogtreecommitdiff
path: root/rts/CheckUnload.c
diff options
context:
space:
mode:
Diffstat (limited to 'rts/CheckUnload.c')
-rw-r--r--rts/CheckUnload.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rts/CheckUnload.c b/rts/CheckUnload.c
index f210d629b1..3761fd2bf5 100644
--- a/rts/CheckUnload.c
+++ b/rts/CheckUnload.c
@@ -182,8 +182,8 @@ static OCSectionIndices *createOCSectionIndices(void)
static void freeOCSectionIndices(OCSectionIndices *s_indices)
{
- free(s_indices->indices);
- free(s_indices);
+ stgFree(s_indices->indices);
+ stgFree(s_indices);
}
void initUnloadCheck()
@@ -231,7 +231,7 @@ static void reserveOCSectionIndices(OCSectionIndices *s_indices, int len)
s_indices->capacity = new_capacity;
s_indices->indices = new_indices;
- free(old_indices);
+ stgFree(old_indices);
}
// Insert object section indices of a single ObjectCode. Invalidates 'sorted'