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

ruby-changes:38991

From: nobu <ko1@a...>
Date: Tue, 30 Jun 2015 23:04:19 +0900 (JST)
Subject: [ruby-changes:38991] nobu:r51072 (trunk): file.c: not xfree

nobu	2015-06-30 23:04:00 +0900 (Tue, 30 Jun 2015)

  New Revision: 51072

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

  Log:
    file.c: not xfree
    
    * win32/file.c (rb_freopen): should free rb_w32_mbstr_to_wstr
      result instead of xfree.

  Modified files:
    trunk/win32/file.c
Index: win32/file.c
===================================================================
--- win32/file.c	(revision 51071)
+++ win32/file.c	(revision 51072)
@@ -741,7 +741,7 @@ rb_freopen(VALUE fname, const char *mode https://github.com/ruby/ruby/blob/trunk/win32/file.c#L741
 	e = _wfreopen_s(&newfp, wname, wmode, file);
     }
 #endif
-    xfree(wname);
+    free(wname);
     return e;
 }
 

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

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