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:
parent
ecaf7975cd
commit
6c56c40b44
2 changed files with 6 additions and 0 deletions
|
@ -304,6 +304,7 @@ static VALUE parse(VALUE self, VALUE yaml)
|
|||
done = 1;
|
||||
break;
|
||||
}
|
||||
yaml_event_delete(&event);
|
||||
}
|
||||
|
||||
return self;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue