summaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/thread.c b/thread.c
index 7aec816dc..9174b533e 100644
--- a/thread.c
+++ b/thread.c
@@ -1764,6 +1764,8 @@ rb_thread_wait_fd_rw(int fd, int read)
result = do_select(fd + 1, 0, rb_fd_ptr(&set), 0, 0);
}
+ rb_fd_term(&set);
+
if (result < 0 && errno != EBADF) {
rb_sys_fail(0);
}