diff options
| author | Yasuhiro Matsumoto <[email protected]> | 2017-12-12 18:11:15 +0900 |
|---|---|---|
| committer | Yasuhiro Matsumoto <[email protected]> | 2017-12-12 22:39:18 +0900 |
| commit | d549603a8a7022baf889fb2b1d762f18c9898127 (patch) | |
| tree | 39c93f816baf4f2ec4595dd5455c3e9bc24f5fba /mrbgems/mruby-io | |
| parent | b8ca0b7cd826545449a2066ddc9c4308c1e76805 (diff) | |
| download | mruby-d549603a8a7022baf889fb2b1d762f18c9898127.tar.gz mruby-d549603a8a7022baf889fb2b1d762f18c9898127.zip | |
close handle
Diffstat (limited to 'mrbgems/mruby-io')
| -rw-r--r-- | mrbgems/mruby-io/src/io.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mrbgems/mruby-io/src/io.c b/mrbgems/mruby-io/src/io.c index c8eb1f787..0eb007504 100644 --- a/mrbgems/mruby-io/src/io.c +++ b/mrbgems/mruby-io/src/io.c @@ -600,6 +600,7 @@ fptr_finalize(mrb_state *mrb, struct mrb_io *fptr, int quiet) if (WaitForSingleObject(h, INFINITE) && GetExitCodeProcess(h, &status)) if (!quiet) io_set_process_status(mrb, fptr->pid, (int)status); + CloseHandle(h); #endif fptr->pid = 0; /* Note: we don't raise an exception when waitpid(3) fails */ |
