Skip to content
  • Peter Zhu's avatar
    0b8f1557
    Fix memory leak for incomplete lambdas · 0b8f1557
    Peter Zhu authored
    [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
    ```
    0b8f1557
    Fix memory leak for incomplete lambdas
    Peter Zhu authored
    [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
    ```
Loading