[newlib-cygwin] Cygwin: cygheap: drop unnecessary code closing curr_primary_token
Corinna Vinschen
corinna@sourceware.org
Sat Feb 23 17:00:00 GMT 2019
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=331653a215a054688308236e595bd0dfba08450f
commit 331653a215a054688308236e595bd0dfba08450f
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Sat Feb 23 17:29:42 2019 +0100
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>
Diff:
---
winsup/cygwin/cygheap.h | 4 ----
1 file changed, 4 deletions(-)
diff --git a/winsup/cygwin/cygheap.h b/winsup/cygwin/cygheap.h
index 99d2e53..8877cc3 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)
More information about the Cygwin-cvs
mailing list