diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-14 00:26:26 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-14 00:26:26 +0000 |
commit | f0208a8995473228b72e660e2b88e2489c4f4beb (patch) | |
tree | 670486ebbc5dcfc6ac6cec548436f8889043b8ec /vm_eval.c | |
parent | 30a69a5998b651508d3d6e4177dbec19ae44663b (diff) |
vm_eval.c (rb_yield_splat): add missing GC guard
Nobody uses this function in our source tree, but maybe this
bug is triggered by certain C extensions.
[Bug #10509]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r-- | vm_eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -989,6 +989,7 @@ rb_yield_splat(VALUE values) rb_raise(rb_eArgError, "not an array"); } v = rb_yield_0(RARRAY_LENINT(tmp), RARRAY_CONST_PTR(tmp)); + RB_GC_GUARD(tmp); return v; } |