mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
-fix a memory leak
svn path=/trunk/; revision=27529
This commit is contained in:
@@ -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 (;;)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user