summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-io
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <[email protected]>2017-12-13 00:18:02 +0900
committerYasuhiro Matsumoto <[email protected]>2017-12-13 00:18:02 +0900
commite0e23b17655ae599dbb402cf0beb0c59e8ebd3c6 (patch)
tree31c744d0d193f89962a97a3b3751c4e072fbfa99 /mrbgems/mruby-io
parent7c8c9f9532324fd8c93afa22ed365c74e7e7e610 (diff)
downloadmruby-e0e23b17655ae599dbb402cf0beb0c59e8ebd3c6.tar.gz
mruby-e0e23b17655ae599dbb402cf0beb0c59e8ebd3c6.zip
close file descriptors
Diffstat (limited to 'mrbgems/mruby-io')
-rw-r--r--mrbgems/mruby-io/test/mruby_io_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mrbgems/mruby-io/test/mruby_io_test.c b/mrbgems/mruby-io/test/mruby_io_test.c
index 7e25dddc2..32887f066 100644
--- a/mrbgems/mruby-io/test/mruby_io_test.c
+++ b/mrbgems/mruby-io/test/mruby_io_test.c
@@ -75,6 +75,8 @@ 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);