mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 10:11:42 +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,
|
||||
(dwArgCount + 1) * sizeof(LPSTR));
|
||||
if (lpArgVector == NULL)
|
||||
{
|
||||
HeapFree(GetProcessHeap(),
|
||||
0,
|
||||
AnsiString);
|
||||
return ERROR_OUTOFMEMORY;
|
||||
}
|
||||
|
||||
dwArgCount = 0;
|
||||
Ptr = AnsiString;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue