diff --git a/ChangeLog b/ChangeLog index b68fc895da..a95d7ca66f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Jun 6 09:39:43 2011 Aaron Patterson + + * 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 * 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;