summaryrefslogtreecommitdiff
path: root/vm_eval.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-19 01:20:04 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-19 01:20:04 +0000
commit3827ce9d81ba774467f4556958e3e045e392b6ab (patch)
tree4d1322071e35b06a94a163aaeec8d655808c53ff /vm_eval.c
parentd6ea8d18f9ffb76aa3541087e55e90c030295129 (diff)
merge revision(s) 48417: [Backport #10509]
* vm_eval.c (rb_yield_splat): add missing GC guard [Bug #10509] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@48491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm_eval.c b/vm_eval.c
index 13030377be..c0334bf365 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -977,6 +977,7 @@ rb_yield_splat(VALUE values)
rb_raise(rb_eArgError, "not an array");
}
v = rb_yield_0(RARRAY_LENINT(tmp), RARRAY_PTR(tmp));
+ RB_GC_GUARD(tmp);
return v;
}