Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fixes a memory leak in Psych parser #17
Release memory associated with yaml_event using yaml_event_delete at bottom of parse event loop.
Test stubs and valgrind shell helper script available in 'fix memory leak' branch.
Example output is:
Clearly things have improved in psych between 1.0.0 (ruby 1.9p180) and 1.1.1 (and, thus, things have improved in ruby-core trunk) - the leak in psych as distributed with ruby-core lead me to start analyzing under valgrind and I discovered that, while the primary cause of leaks in 1.0.0 had been rectified, a leak does still remain.
This pull request contains a one-line patch that plugs that leak. :)