From 9ef3984d7145791d437e2f6138a4ebbc23bf555d Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Mon, 18 May 2009 20:57:24 +0000 Subject: [PATCH] - MFB: close manually the impersonation token --- TSRM/tsrm_win32.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c index acddc46868..5c30ce58c9 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) -- 2.40.0