Actions
Bug #1911
closedMemory leak in Dir.glob on Windows
Description
=begin
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.
=end
Actions
Like0
Like0Like0Like0