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

ruby-changes:8883

From: yugui <ko1@a...>
Date: Sun, 30 Nov 2008 18:25:35 +0900 (JST)
Subject: [ruby-changes:8883] Ruby:r20418 (ruby_1_9_1): merges r20364 from trunk into ruby_1_9_1.

yugui	2008-11-30 18:24:11 +0900 (Sun, 30 Nov 2008)

  New Revision: 20418

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20418

  Log:
    merges r20364 from trunk into ruby_1_9_1.
    * ext/gdbm/gdbm.c (rb_gdbm_nextkey): fix memory leak.

  Modified files:
    branches/ruby_1_9_1/ChangeLog
    branches/ruby_1_9_1/ext/gdbm/gdbm.c

Index: ruby_1_9_1/ChangeLog
===================================================================
--- ruby_1_9_1/ChangeLog	(revision 20417)
+++ ruby_1_9_1/ChangeLog	(revision 20418)
@@ -1,3 +1,7 @@
+Wed Nov 26 15:16:07 2008  Kazuhiro NISHIYAMA  <zn@m...>
+
+	* ext/gdbm/gdbm.c (rb_gdbm_nextkey): fix memory leak.
+
 Wed Nov 26 03:17:48 2008  Yukihiro Matsumoto  <matz@r...>
 
 	* ext/bigdecimal/bigdecimal.c (BigDecimal_to_r): raise exception
Index: ruby_1_9_1/ext/gdbm/gdbm.c
===================================================================
--- ruby_1_9_1/ext/gdbm/gdbm.c	(revision 20417)
+++ ruby_1_9_1/ext/gdbm/gdbm.c	(revision 20418)
@@ -344,6 +344,7 @@
         return Qnil;
 
     str = rb_str_new(key2.dptr, key2.dsize);
+    free(key2.dptr);
     OBJ_TAINT(str);
     return str;
 }

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

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