mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 17:35:07 +00:00
-fix a memory leak
svn path=/trunk/; revision=27529
This commit is contained in:
parent
e392256c32
commit
972c5d1754
|
@ -1225,7 +1225,7 @@ done:;
|
|||
else
|
||||
{
|
||||
/* Release the display name buffer */
|
||||
if (lpService->lpServiceName != lpService->lpDisplayName)
|
||||
if (lpService->lpServiceName != NULL)
|
||||
HeapFree(GetProcessHeap(), 0, lpService->lpDisplayName);
|
||||
|
||||
if (hServiceHandle != NULL)
|
||||
|
|
|
@ -369,7 +369,8 @@ WinMain(HINSTANCE hInstance,
|
|||
|
||||
#if 1
|
||||
hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
|
||||
WaitForSingleObject(hEvent, INFINITE);
|
||||
if (hEvent)
|
||||
WaitForSingleObject(hEvent, INFINITE);
|
||||
#else
|
||||
for (;;)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue