diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-30 14:04:00 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-30 14:04:00 +0000 |
commit | 26ef134e3fa4b027591afd39ae715a0f35b32ebb (patch) | |
tree | c8417cbc7073bfb089d9cc66f691452395fbf5e4 | |
parent | a9139bbdd5b48b27f7e89a8fda15d1a12960a356 (diff) | |
download | ruby-26ef134e3fa4b027591afd39ae715a0f35b32ebb.tar.gz |
file.c: not xfree
* win32/file.c (rb_freopen): should free rb_w32_mbstr_to_wstr
result instead of xfree.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | win32/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/file.c b/win32/file.c index 35b972f222..16fa8f5c1c 100644 --- a/win32/file.c +++ b/win32/file.c @@ -741,7 +741,7 @@ rb_freopen(VALUE fname, const char *mode, FILE *file) e = _wfreopen_s(&newfp, wname, wmode, file); } #endif - xfree(wname); + free(wname); return e; } |