Merge pull request #3889 from mattn/fix-crash

fix crash bug on Windows
This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-12-13 14:10:44 +09:00
committed by GitHub
-2
View File
@@ -75,8 +75,6 @@ mrb_io_test_io_setup(mrb_state *mrb, mrb_value self)
mrb_raise(mrb, E_RUNTIME_ERROR, "can't create temporary file");
return mrb_nil_value();
}
close(fd0);
close(fd1);
#if !defined(_WIN32) && !defined(_WIN64)
fd2 = mkstemp(symlinkname);
fd3 = mkstemp(socketname);