cvs: TSRM(PHP_5_3) / tsrm_win32.c

[email protected] ("Pierre-Alain Joye") Mon, 18 May 2009 20:56:47 -0000
Newsgroups php.zend-engine.cvs
Message-ID <cvspajoye1242680207@cvsserver>
pajoye		Mon May 18 20:56:47 2009 UTC

  Modified files:              (Branch: PHP_5_3)
    /TSRM	tsrm_win32.c 
  Log:
  - close manually the impersonation token
  
http://cvs.php.net/viewvc.cgi/TSRM/tsrm_win32.c?r1=1.27.2.1.2.7.2.5&r2=1.27.2.1.2.7.2.6&diff_format=u
Index: TSRM/tsrm_win32.c
diff -u TSRM/tsrm_win32.c:1.27.2.1.2.7.2.5 TSRM/tsrm_win32.c:1.27.2.1.2.7.2.6
--- TSRM/tsrm_win32.c:1.27.2.1.2.7.2.5	Sun May 17 19:42:53 2009
+++ TSRM/tsrm_win32.c	Mon May 18 20:56:46 2009
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: tsrm_win32.c,v 1.27.2.1.2.7.2.5 2009/05/17 19:42:53 pajoye Exp $ */
+/* $Id: tsrm_win32.c,v 1.27.2.1.2.7.2.6 2009/05/18 20:56:46 pajoye Exp $ */
 
 #include <stdio.h>
 #include <fcntl.h>
@@ -68,6 +68,10 @@
 	}
 
 	free(globals->comspec);
+
+	If(globals->impersonation_token) {
+		CloseHandle(globals->impersonation_token);
+	}
 }
 
 TSRM_API void tsrm_win32_startup(void)