1
0
Fork 0
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:
Aaron Patterson 2019-10-04 11:17:43 -07:00
parent a20ed0565e
commit bd4b65f4b0
No known key found for this signature in database
GPG key ID: 953170BCB4FFAFC6

2
gc.c
View file

@ -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: