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:
parent
9db6048c0f
commit
331653a215
|
@ -177,10 +177,6 @@ public:
|
|||
{
|
||||
if (curr_imp_token != NO_IMPERSONATION)
|
||||
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)
|
||||
CloseHandle (external_token);
|
||||
if (internal_token != NO_IMPERSONATION)
|
||||
|
|
Loading…
Reference in New Issue