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 | 24a72a177d3006482abe0bfe7d531d6575361679 (patch) | |
tree | c8417cbc7073bfb089d9cc66f691452395fbf5e4 /win32 | |
parent | b4718bf4f0cb1c0e27d0b982835b3e6a5ea28a9b (diff) |
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
Diffstat (limited to 'win32')
-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; } |