From: Pierre Joye Date: Wed, 27 Jan 2010 16:52:36 +0000 (+0000) Subject: - fix leak X-Git-Tag: php-5.4.0alpha1~191^2~2022 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=774ce60c1265d99b42bb1d8e4567508be20edd14;p=php - fix leak --- diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c index f1d150067f..99f27794a1 100644 --- a/TSRM/tsrm_win32.c +++ b/TSRM/tsrm_win32.c @@ -176,6 +176,7 @@ PSID tsrm_win32_get_token_sid(HANDLE hToken) if (!CopySid(sid_len, pResultSid, pTokenUser->User.Sid)) { goto Finished; } + HeapFree(GetProcessHeap(), 0, (LPVOID)pTokenUser); return pResultSid; Finished: