summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index 422cb693..b5eb4d1e 100644
--- a/lib.c
+++ b/lib.c
@@ -11094,9 +11094,11 @@ static void mergesort(val vec, val lessfun, val keyfun, cnum from, cnum to,
static void ssort_vec(val vec, val lessfun, val keyfun, val self)
{
cnum len = c_fixnum(length(vec), self);
- val *aux = gc_prot_array_alloc(len);
+ val auxobj;
+ val *aux = gc_prot_array_alloc(len, &auxobj);
mergesort(vec, lessfun, keyfun, 0, len, aux);
gc_prot_array_free(aux);
+ gc_hint(auxobj);
}