Actions
Bug #19836
closedParser leaks memory for incomplete lambdas
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
Like0
Like0Like0