ruby-changes:6749
From: mame <ko1@a...>
Date: Wed, 30 Jul 2008 21:08:42 +0900 (JST)
Subject: [ruby-changes:6749] Ruby:r18265 (trunk): * regparse.c (parse_exp): fix memory leak at Regexp.new("x{1,1}").
mame 2008-07-30 21:08:28 +0900 (Wed, 30 Jul 2008) New Revision: 18265 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18265 Log: * regparse.c (parse_exp): fix memory leak at Regexp.new("x{1,1}"). Modified files: trunk/ChangeLog trunk/regparse.c Index: regparse.c =================================================================== --- regparse.c (revision 18264) +++ regparse.c (revision 18265) @@ -5392,6 +5392,9 @@ if (r == 0) { *targetp = qn; } + else if (r == 1) { + onig_node_free(qn); + } else if (r == 2) { /* split case: /abc+/ */ Node *tmp; Index: ChangeLog =================================================================== --- ChangeLog (revision 18264) +++ ChangeLog (revision 18265) @@ -1,3 +1,7 @@ +Wed Jul 30 21:08:06 2008 Yusuke Endoh <mame@t...> + + * regparse.c (parse_exp): fix memory leak at Regexp.new("x{1,1}"). + Wed Jul 30 17:48:15 2008 Nobuyoshi Nakada <nobu@r...> * win32/win32.c (rb_w32_select): recalc the rest of timeout for each -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/