summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index 6be650f840..5cc1f72af0 100644
--- a/gc.c
+++ b/gc.c
@@ -2269,6 +2269,7 @@ gc_slot_sweep(rb_objspace_t *objspace, struct heap_slot *sweep_slot)
}
}
else {
+ heap_slot_add_freeobj(objspace, sweep_slot, (VALUE)p);
empty_num++;
}
}