aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-06 00:41:24 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-06 00:41:24 +0000
commit6c56c40b4422a89776f0128ca274e36e6784d896 (patch)
tree6f6acb95bae6a3ab412cc001476ec98908ceb5eb
parentecaf7975cdca4cca1d93c822091747dbd3900101 (diff)
downloadruby-6c56c40b4422a89776f0128ca274e36e6784d896.tar.gz
* 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
-rw-r--r--ChangeLog5
-rw-r--r--ext/psych/parser.c1
2 files changed, 6 insertions, 0 deletions
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 <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;