mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 19:26:16 +00:00
-fix a memory leak
svn path=/trunk/; revision=27530
This commit is contained in:
@@ -177,7 +177,12 @@ ScServiceMainStub(LPVOID Context)
|
||||
0,
|
||||
(dwArgCount + 1) * sizeof(LPSTR));
|
||||
if (lpArgVector == NULL)
|
||||
{
|
||||
HeapFree(GetProcessHeap(),
|
||||
0,
|
||||
AnsiString);
|
||||
return ERROR_OUTOFMEMORY;
|
||||
}
|
||||
|
||||
dwArgCount = 0;
|
||||
Ptr = AnsiString;
|
||||
|
||||
Reference in New Issue
Block a user