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:
parent
b4718bf4f0
commit
24a72a177d
1 changed files with 1 additions and 1 deletions
|
@ -741,7 +741,7 @@ rb_freopen(VALUE fname, const char *mode, FILE *file)
|
||||||
e = _wfreopen_s(&newfp, wname, wmode, file);
|
e = _wfreopen_s(&newfp, wname, wmode, file);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
xfree(wname);
|
free(wname);
|
||||||
return e;
|
return e;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue