cowboyd/less.rb — Issue #20: Parser causes memory leak problem
Author: mquan
Created: 2012-02-16 18:29:38+00:00
State: open

I have a rails app that dynamically compiles less to css based on user inputs and have noticed significant memory leakage that crashes the app after running for about 30 minutes. Using the oink gem, I was able to pinpoint the cause, which is the parse method that creates the Less::Tree. The memory leak occurs even before calling to_css

It seems like something isn't deallocated properly and I just wonder if there's any hook for me to manually destroy everything created by the parse method.

Thanks