From bd4b65f4b05ff7dcb5c7e16f174c57885bf27e40 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 4 Oct 2019 11:17:43 -0700 Subject: 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. --- gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gc.c') diff --git a/gc.c b/gc.c index 48e8becc7d..86c9c672c8 100644 --- a/gc.c +++ b/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: -- cgit v1.2.3