Project

General

Profile

Actions

Bug #19836

closed

Parser leaks memory for incomplete lambdas

Added by peterzhu2118 (Peter Zhu) over 1 year ago. Updated over 1 year ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:114379]

Description

GitHub Pull Request: https://github.com/ruby/ruby/pull/8192

The parser does not free the chain of struct vtable, which causes memory leaks.

The following script reproduces this issue:

10.times do
  100_000.times do
    Ripper.parse("-> {")
  end

  puts `ps -o rss= -p #{$$}`
end
Actions

Also available in: Atom PDF

Like0
Like0Like0