]> granicus.if.org Git - php/commitdiff
- close manually the impersonation token
authorPierre Joye <pajoye@php.net>
Mon, 18 May 2009 20:56:46 +0000 (20:56 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 18 May 2009 20:56:46 +0000 (20:56 +0000)
TSRM/tsrm_win32.c

index 9e7ece0ed355c39a0923aca99eb8195d52e3c05d..5ab39856c25c6acd42a1d005dc251399572c8dab 100644 (file)
@@ -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)