summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-08-09 12:18:28 -0400
committerPeter Zhu <peter@peterzhu.ca>2023-08-09 14:06:58 -0400
commit0b8f15575a440f85ac686f5b0eae8f8b7c2b72e7 (patch)
treef0435bad733992270e673308cd59a04d0373e895 /test/ruby
parent5bc8fceca8d47ed1ef9c603c6531a408de36b60c (diff)
Fix memory leak for incomplete lambdas
[Bug #19836] 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 ```
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/8192
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions