Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2019-02-23 19:29:42 +0300
committerCorinna Vinschen <corinna@vinschen.de>2019-02-23 19:29:42 +0300
commit331653a215a054688308236e595bd0dfba08450f (patch)
tree7478a6b9e2844a47624cce79bfb1d68f9ce14173
parent9db6048c0fe7c35586f762ee2cdc1d0f92a041ea (diff)
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>
-rw-r--r--winsup/cygwin/cygheap.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/winsup/cygwin/cygheap.h b/winsup/cygwin/cygheap.h
index 99d2e5389..8877cc358 100644
--- a/winsup/cygwin/cygheap.h
+++ b/winsup/cygwin/cygheap.h
@@ -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)