1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2015-06-30 14:04:00 +00:00
parent b4718bf4f0
commit 24a72a177d

View file

@ -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;
}