summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index a7486aa..0ef7970 100644
--- a/gc.c
+++ b/gc.c
@@ -991,7 +991,7 @@ gc_sweep()
}
}
}
- for (i = j = 0; j < heaps_used; i++) {
+ for (i = j = 1; j < heaps_used; i++) {
if (heaps_limits[i] == 0) {
free(heaps[i]);
heaps_used--;