mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 02:37:06 +00:00
-fix a memory leak
svn path=/trunk/; revision=27530
This commit is contained in:
parent
972c5d1754
commit
2ee6ba87f9
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue