From 2d3dab2ea54fac1476c585e5083367059f0203d6 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sat, 19 Jan 2002 16:06:11 +0000 Subject: [PATCH] * security.cc (create_token): Close processes token handle as soon as it's not used anymore. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/security.cc | 1 + 2 files changed, 6 insertions(+) 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 + + * security.cc (create_token): Close processes token handle as soon + as it's not used anymore. + 2002-01-17 Corinna Vinschen * 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. */