Cygwin: cygheap: drop unnecessary code closing curr_primary_token

curr_primary_token is either NO_IMPERSONATION or the external_token
or the internal_token, so it's never required to be closed by itself.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2019-02-23 17:29:42 +01:00
parent 9db6048c0f
commit 331653a215
1 changed files with 0 additions and 4 deletions

View File

@ -177,10 +177,6 @@ public:
{ {
if (curr_imp_token != NO_IMPERSONATION) if (curr_imp_token != NO_IMPERSONATION)
CloseHandle (curr_imp_token); CloseHandle (curr_imp_token);
if (curr_primary_token != NO_IMPERSONATION
&& curr_primary_token != external_token
&& curr_primary_token != internal_token)
CloseHandle (curr_primary_token);
if (external_token != NO_IMPERSONATION) if (external_token != NO_IMPERSONATION)
CloseHandle (external_token); CloseHandle (external_token);
if (internal_token != NO_IMPERSONATION) if (internal_token != NO_IMPERSONATION)