ruby-changes:8828
From: kazu <ko1@a...>
Date: Wed, 26 Nov 2008 15:39:34 +0900 (JST)
Subject: [ruby-changes:8828] Ruby:r20364 (trunk): * ext/gdbm/gdbm.c (rb_gdbm_nextkey): fix memory leak.
kazu 2008-11-26 15:39:14 +0900 (Wed, 26 Nov 2008) New Revision: 20364 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20364 Log: * ext/gdbm/gdbm.c (rb_gdbm_nextkey): fix memory leak. Modified files: trunk/ChangeLog trunk/ext/gdbm/gdbm.c Index: ChangeLog =================================================================== --- ChangeLog (revision 20363) +++ ChangeLog (revision 20364) @@ -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: ext/gdbm/gdbm.c =================================================================== --- ext/gdbm/gdbm.c (revision 20363) +++ ext/gdbm/gdbm.c (revision 20364) @@ -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/