From cc933a96f8e83bc66fb69ed33d9593acdd60c929 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Tue, 7 Mar 2017 10:19:40 +0900 Subject: [PATCH] scd: Close THE_EVENT handle. * scd/scdaemon.c (handle_connections): Close the handle. -- Signed-off-by: NIIBE Yutaka --- scd/scdaemon.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scd/scdaemon.c b/scd/scdaemon.c index 4b63c9b4d..13cf2e6e0 100644 --- a/scd/scdaemon.c +++ b/scd/scdaemon.c @@ -1378,6 +1378,10 @@ handle_connections (int listen_fd) } } +#ifdef HAVE_W32_SYSTEM + if (the_event != INVALID_HANDLE_VALUE) + CloseHandle (the_event); +#endif cleanup (); log_info (_("%s %s stopped\n"), strusage(11), strusage(13)); npth_attr_destroy (&tattr);