summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/security.cc1
2 files changed, 6 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 8f96c2353..02544ea46 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-19 Corinna Vinschen <corinna@vinschen.de>
+
+ * security.cc (create_token): Close processes token handle as soon
+ as it's not used anymore.
+
2002-01-17 Corinna Vinschen <corinna@vinschen.de>
* Makefile.in: Add fnmatch.o to DLL_OFILES.
diff --git a/winsup/cygwin/security.cc b/winsup/cygwin/security.cc
index 77ea8fbcc..6bacfdef0 100644
--- a/winsup/cygwin/security.cc
+++ b/winsup/cygwin/security.cc
@@ -779,6 +779,7 @@ create_token (cygsid &usersid, cygsid &pgrpsid)
free (my_grps);
my_grps = NULL;
}
+ CloseHandle (my_token);
}
/* Create list of groups, the user is member in. */