diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-21 03:26:38 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-21 03:26:38 +0000 |
commit | 8d0f5f1bfa7bf9cd257f381fd6cc80b99a2edcd7 (patch) | |
tree | 522480ec4b4922cd0971046390e63ca4014ae466 /benchmark/app_lc_fizzbuzz.rb | |
parent | 33c74657ff49e554f0183fbd84599819576b63a2 (diff) |
thread.c (do_select): fix leak on exception
When do_select is interrupted and raise happens from
RUBY_VM_CHECK_INTS_BLOCKING, the original FD sets we copied
do not get freed, leading to a memory leak. Wrap up all the
FD sets into a Ruby object to ensure the GC can release an
allocations made for rb_fdset_t.
This leak existed since Ruby 2.0.0 (r36430)
[Bug #14929]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark/app_lc_fizzbuzz.rb')
0 files changed, 0 insertions, 0 deletions