Project

General

Profile

Actions

Bug #1911

closed

Memory leak in Dir.glob on Windows

Added by phasis68 (Heesob Park) over 14 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.2dev (2009-08-08 trunk 24444) [i386-mswin32_90]
Backport:
[ruby-core:24820]

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 #1

Updated by nobu (Nobuyoshi Nakada) over 14 years ago

  • Status changed from Open to Assigned
  • Assignee set to usa (Usaku NAKAMURA)

=begin

=end

Actions #2

Updated by usa (Usaku NAKAMURA) over 14 years ago

  • Assignee changed from usa (Usaku NAKAMURA) to nobu (Nobuyoshi Nakada)

=begin
Nobu, check r23023.
=end

Actions #3

Updated by usa (Usaku NAKAMURA) over 14 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r24510.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0