diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/psych/parser.c | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Mon Jun 6 09:39:43 2011 Aaron Patterson <aaron@tenderlovemaking.com> + + * ext/psych/parser.c (parse): release event objects to plug memory + leak. Thanks Mark J. Titorenko! + Sun Jun 5 23:26:15 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> * eval.c: remove rb_thread_stop_timer_thread function declaration. diff --git a/ext/psych/parser.c b/ext/psych/parser.c index 8e7df9520b..e68768f562 100644 --- a/ext/psych/parser.c +++ b/ext/psych/parser.c @@ -304,6 +304,7 @@ static VALUE parse(VALUE self, VALUE yaml) done = 1; break; } + yaml_event_delete(&event); } return self; |