projects
/
php
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e130a31
)
- fix leak
author
Pierre Joye
<pajoye@php.net>
Wed, 27 Jan 2010 16:52:36 +0000
(16:52 +0000)
committer
Pierre Joye
<pajoye@php.net>
Wed, 27 Jan 2010 16:52:36 +0000
(16:52 +0000)
TSRM/tsrm_win32.c
patch
|
blob
|
history
diff --git
a/TSRM/tsrm_win32.c
b/TSRM/tsrm_win32.c
index 67742f0b389307e263fbf4d068dca643ba4a09ad..4058636f0efbec38212c81914ee9334b1818f2f7 100644
(file)
--- a/
TSRM/tsrm_win32.c
+++ b/
TSRM/tsrm_win32.c
@@
-170,13
+170,13
@@
PSID tsrm_win32_get_token_sid(HANDLE hToken)
/* ConvertSidToStringSid(pTokenUser->User.Sid, &ptcSidOwner); */
pResultSid = malloc(sid_len);
-
if (!pResultSid) {
goto Finished;
}
if (!CopySid(sid_len, pResultSid, pTokenUser->User.Sid)) {
goto Finished;
}
+ HeapFree(GetProcessHeap(), 0, (LPVOID)pTokenUser);
return pResultSid;
Finished: