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

* regparse.c (parse_exp): fix memory leak at Regexp.new("x{1,1}").

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2008-07-30 12:08:28 +00:00
parent 99f8f86354
commit 0df6cb496a
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Wed Jul 30 21:08:06 2008 Yusuke Endoh <mame@tsg.ne.jp>
* regparse.c (parse_exp): fix memory leak at Regexp.new("x{1,1}").
Wed Jul 30 17:48:15 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* win32/win32.c (rb_w32_select): recalc the rest of timeout for each

View file

@ -5392,6 +5392,9 @@ parse_exp(Node** np, OnigToken* tok, int term,
if (r == 0) {
*targetp = qn;
}
else if (r == 1) {
onig_node_free(qn);
}
else if (r == 2) { /* split case: /abc+/ */
Node *tmp;