aboutsummaryrefslogtreecommitdiffstats
path: root/vlib
diff options
context:
space:
mode:
Diffstat (limited to 'vlib')
-rw-r--r--vlib/vlib/unix/input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vlib/vlib/unix/input.c b/vlib/vlib/unix/input.c
index ea10e4fc354..f9d7feceeb5 100644
--- a/vlib/vlib/unix/input.c
+++ b/vlib/vlib/unix/input.c
@@ -195,6 +195,8 @@ linux_epoll_input (vlib_main_t * vm,
errors[n_errors] = f->error_function (f);
n_errors += errors[n_errors] != 0;
}
+ else
+ close(f->file_descriptor);
}
ASSERT (n_errors < ARRAY_LEN (errors));