1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
tenderlove 2011-06-06 00:41:24 +00:00
parent ecaf7975cd
commit 6c56c40b44
2 changed files with 6 additions and 0 deletions

View file

@ -304,6 +304,7 @@ static VALUE parse(VALUE self, VALUE yaml)
done = 1;
break;
}
yaml_event_delete(&event);
}
return self;