summaryrefslogtreecommitdiff
path: root/TSRM
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2009-05-18 20:56:46 +0000
committerPierre Joye <pajoye@php.net>2009-05-18 20:56:46 +0000
commitaedaf1aea9807c2c84bf5d96c26dd356dbbdcfe1 (patch)
tree20b0ed57831054788558b43ccc0b39519c515ad4 /TSRM
parente5348b9152245cfebd5bf14e3f79c18ea8dd3177 (diff)
downloadphp-git-aedaf1aea9807c2c84bf5d96c26dd356dbbdcfe1.tar.gz
- close manually the impersonation token
Diffstat (limited to 'TSRM')
-rw-r--r--TSRM/tsrm_win32.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c
index 9e7ece0ed3..5ab39856c2 100644
--- a/TSRM/tsrm_win32.c
+++ b/TSRM/tsrm_win32.c
@@ -68,6 +68,10 @@ static void tsrm_win32_dtor(tsrm_win32_globals *globals TSRMLS_DC)
}
free(globals->comspec);
+
+ If(globals->impersonation_token) {
+ CloseHandle(globals->impersonation_token);
+ }
}
TSRM_API void tsrm_win32_startup(void)