summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/security.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2002-01-19 16:06:11 +0000
committerCorinna Vinschen <corinna@vinschen.de>2002-01-19 16:06:11 +0000
commit2d3dab2ea54fac1476c585e5083367059f0203d6 (patch)
treebf164f4edef4365384c854d834f480767765e6ce /winsup/cygwin/security.cc
parent13baedeb741a4a07b23f033141741ddd8ae64e4d (diff)
downloadcygnal-2d3dab2ea54fac1476c585e5083367059f0203d6.tar.gz
cygnal-2d3dab2ea54fac1476c585e5083367059f0203d6.tar.bz2
cygnal-2d3dab2ea54fac1476c585e5083367059f0203d6.zip
* security.cc (create_token): Close processes token handle as soon
as it's not used anymore.
Diffstat (limited to 'winsup/cygwin/security.cc')
-rw-r--r--winsup/cygwin/security.cc1
1 files changed, 1 insertions, 0 deletions
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. */