mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 13:16:07 +00:00
-fix a memory leak
svn path=/trunk/; revision=27530
This commit is contained in:
parent
972c5d1754
commit
2ee6ba87f9
1 changed files with 5 additions and 0 deletions
|
@ -177,7 +177,12 @@ ScServiceMainStub(LPVOID Context)
|
||||||
0,
|
0,
|
||||||
(dwArgCount + 1) * sizeof(LPSTR));
|
(dwArgCount + 1) * sizeof(LPSTR));
|
||||||
if (lpArgVector == NULL)
|
if (lpArgVector == NULL)
|
||||||
|
{
|
||||||
|
HeapFree(GetProcessHeap(),
|
||||||
|
0,
|
||||||
|
AnsiString);
|
||||||
return ERROR_OUTOFMEMORY;
|
return ERROR_OUTOFMEMORY;
|
||||||
|
}
|
||||||
|
|
||||||
dwArgCount = 0;
|
dwArgCount = 0;
|
||||||
Ptr = AnsiString;
|
Ptr = AnsiString;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue