From 6c56c40b4422a89776f0128ca274e36e6784d896 Mon Sep 17 00:00:00 2001 From: tenderlove Date: Mon, 6 Jun 2011 00:41:24 +0000 Subject: * 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 --- ext/psych/parser.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/psych') 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; -- cgit v1.2.3