[前][次][番号順一覧][スレッド一覧]

ruby-changes:5023

From: nagai <ko1@a...>
Date: Thu, 22 May 2008 06:39:11 +0900 (JST)
Subject: [ruby-changes:5023] nagai - Ruby:r16516 (ruby_1_8): * array.c (flatten): fix memory leak.

nagai	2008-05-22 06:38:59 +0900 (Thu, 22 May 2008)

  New Revision: 16516

  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/array.c

  Log:
    * array.c (flatten): fix memory leak.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=16516&r2=16515&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/array.c?r1=16516&r2=16515&diff_format=u

Index: ruby_1_8/array.c
===================================================================
--- ruby_1_8/array.c	(revision 16515)
+++ ruby_1_8/array.c	(revision 16516)
@@ -3143,6 +3143,8 @@
 	ary = rb_ary_pop(stack);
     }
 
+    st_free_table(memo);
+
     return result;
 }
 
Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog	(revision 16515)
+++ ruby_1_8/ChangeLog	(revision 16516)
@@ -1,3 +1,7 @@
+Thu May 22 06:30:10 2008  Hidetoshi NAGAI  <nagai@a...>
+
+	* array.c (flatten): fix memory leak.
+
 Thu May 22 05:45:30 2008  Yukihiro Matsumoto  <matz@r...>
 
 	* proc.c (proc_dup): should copy safe_level from src proc

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]