mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
IMEMO objects don't have a class, so return early
IMEMO objects don't have a class field to update, so we need to return early, otherwise it can cause a segv.
This commit is contained in:
parent
a20ed0565e
commit
bd4b65f4b0
1 changed files with 1 additions and 1 deletions
2
gc.c
2
gc.c
|
@ -8068,7 +8068,7 @@ gc_update_object_references(rb_objspace_t *objspace, VALUE obj)
|
|||
|
||||
case T_IMEMO:
|
||||
gc_ref_update_imemo(objspace, obj);
|
||||
break;
|
||||
return;
|
||||
|
||||
case T_NIL:
|
||||
case T_FIXNUM:
|
||||
|
|
Loading…
Reference in a new issue