Project

General

Profile

« Previous | Next » 

Revision 5bc8fcec

Added by peterzhu2118 (Peter Zhu) over 2 years ago

Fix memory leak in parser for incomplete tokens

[Bug #19835]

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