From 8f27789d2504fb66012811e3c14c6006758620fb Mon Sep 17 00:00:00 2001 From: Quantum Date: Thu, 14 Jan 2021 22:40:12 -0500 Subject: [PATCH] [host] windows: close handle to token in enablePriv This should eliminate all handle leaks resulting from killing the host. --- host/platform/Windows/src/service.c | 1 + 1 file changed, 1 insertion(+) diff --git a/host/platform/Windows/src/service.c b/host/platform/Windows/src/service.c index 2f6296e1..3da06b1d 100644 --- a/host/platform/Windows/src/service.c +++ b/host/platform/Windows/src/service.c @@ -176,6 +176,7 @@ bool enablePriv(const char * name) goto fail; } + CloseHandle(hToken); return true; fail: