diff --git a/ChangeLog b/ChangeLog index 49351a67e6..47e9e2b556 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Jul 22 10:09:46 2013 Koichi Sasada + + * gc.c (gc_slot_sweep): need to add empty RVALUE as freeobj. + Mon Jul 22 09:48:31 2013 Nobuyoshi Nakada * vm_eval.c (eval_string_with_cref): use the given file name unless 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++; } }