mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Added GC guard for splatted array
This commit is contained in:
parent
adf709a785
commit
8a504b224f
1 changed files with 3 additions and 1 deletions
4
struct.c
4
struct.c
|
@ -659,7 +659,9 @@ rb_struct_initialize_m(int argc, const VALUE *argv, VALUE self)
|
|||
VALUE
|
||||
rb_struct_initialize(VALUE self, VALUE values)
|
||||
{
|
||||
return rb_struct_initialize_m(RARRAY_LENINT(values), RARRAY_CONST_PTR(values), self);
|
||||
rb_struct_initialize_m(RARRAY_LENINT(values), RARRAY_CONST_PTR(values), self);
|
||||
RB_GC_GUARD(values);
|
||||
return Qnil;
|
||||
}
|
||||
|
||||
static VALUE *
|
||||
|
|
Loading…
Reference in a new issue