Issue #9978 has been updated by Nobuyoshi Nakada.

Status changed from Open to Closed
% Done changed from 0 to 100

Applied in changeset r46557.

----------
hash.c: fix memory leak

* hash.c (env_select): fix memory leak and crash on Windows, make
  keys array first instead of iterating on envrion directly.
  [ruby-dev:48325] [Bug #9978]

----------------------------------------
Bug #9978: memory leak at ENV.select on Windows
https://bugs.ruby-lang.org/issues/9978#change-47376

* Author: Nobuyoshi Nakada
* Status: Closed
* Priority: Normal
* Assignee: cruby-windows
* Category: core
* Target version: current: 2.2.0
* ruby -v: trunk
* Backport: 2.0.0: REQUIRED, 2.1: REQUIRED
----------------------------------------
Windows版で、`ENV.select {break}` がメモリリークしているようです。



-- 
https://bugs.ruby-lang.org/