ruby-changes:15030
From: nobu <ko1@a...>
Date: Sat, 13 Mar 2010 12:26:35 +0900 (JST)
Subject: [ruby-changes:15030] Ruby:r26905 (trunk): * include/ruby/io.h (MakeOpenFile): finalize fptr get rid of
nobu 2010-03-13 12:26:18 +0900 (Sat, 13 Mar 2010) New Revision: 26905 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26905 Log: * include/ruby/io.h (MakeOpenFile): finalize fptr get rid of memory leak. Modified files: trunk/ChangeLog trunk/include/ruby/io.h Index: include/ruby/io.h =================================================================== --- include/ruby/io.h (revision 26904) +++ include/ruby/io.h (revision 26905) @@ -101,7 +101,7 @@ #define MakeOpenFile(obj, fp) do {\ if (RFILE(obj)->fptr) {\ rb_io_close(obj);\ - free(RFILE(obj)->fptr);\ + rb_io_fptr_finalize(RFILE(obj)->fptr);\ RFILE(obj)->fptr = 0;\ }\ fp = 0;\ Index: ChangeLog =================================================================== --- ChangeLog (revision 26904) +++ ChangeLog (revision 26905) @@ -1,3 +1,8 @@ +Sat Mar 13 12:26:13 2010 Nobuyoshi Nakada <nobu@r...> + + * include/ruby/io.h (MakeOpenFile): finalize fptr get rid of + memory leak. + Sat Mar 13 11:14:26 2010 Shugo Maeda <shugo@r...> * load.c (rb_get_expanded_load_path): expand paths if any item in $: @@ -14,7 +19,7 @@ Sat Mar 13 03:24:15 2010 Tanaka Akira <akr@f...> - * tool/transcode-tblgen.rb: show cosumed time at last. + * tool/transcode-tblgen.rb: show consumed time at last. Sat Mar 13 00:44:20 2010 Nobuyoshi Nakada <nobu@r...> -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/