Actions
Bug #19835
closedParser leaks memory for incomplete tokens
Bug #19835:
Parser leaks memory for incomplete tokens
Description
GitHub Pull Request: https://github.com/ruby/ruby/pull/8192
The parser does not free the tbl
of the struct vtable
when there are leftover lvtbl
in the parser. This causes a memory leak.
The following script reproduces this issue:
10.times do
100_000.times do
Ripper.parse("class Foo")
end
puts `ps -o rss= -p #{$$}`
end
Actions