From 6c56c40b4422a89776f0128ca274e36e6784d896 Mon Sep 17 00:00:00 2001 From: tenderlove Date: Mon, 6 Jun 2011 00:41:24 +0000 Subject: [PATCH] * ext/psych/parser.c (parse): release event objects to plug memory leak. Thanks Mark J. Titorenko! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ ext/psych/parser.c | 1 + 2 files changed, 6 insertions(+) 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;