From: Heesob Park Date: 2009-08-08T23:25:16+09:00 Subject: [ruby-core:24820] [Bug #1911] Memory leak in Dir.glob on Windows Bug #1911: Memory leak in Dir.glob on Windows http://redmine.ruby-lang.org/issues/show/1911 Author: Heesob Park Status: Open, Priority: Normal Category: core, Target version: 1.9.x ruby -v: ruby 1.9.2dev (2009-08-08 trunk 24444) [i386-mswin32_90] I found the memory leak in Dir.glob of Ruby 1.9 (trunk) on Windows. After running this code ruby -e 'for i in 0..100000;Dir.glob("c:/*");end' The memory usage is increasing steeply and never decrease. I guess that leak is due to the several WCHAR pointers in win32.c. I noticed that pointer is allocated for MultiByteToWideChar function and not freed afterward. ---------------------------------------- http://redmine.ruby-lang.org