[host] windows: close handle to token in enablePriv

This should eliminate all handle leaks resulting from killing the host.
This commit is contained in:
Quantum 2021-01-14 22:40:12 -05:00 committed by Geoffrey McRae
parent e401513552
commit 8f27789d25

View file

@ -176,6 +176,7 @@ bool enablePriv(const char * name)
goto fail;
}
CloseHandle(hToken);
return true;
fail: