mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 16:42:03 +00:00
fix resource leak, CID 611
svn path=/trunk/; revision=36813
This commit is contained in:
parent
290a31c692
commit
aa7f022cbc
1 changed files with 2 additions and 0 deletions
|
@ -349,6 +349,7 @@ static BOOL ProcessRunKeys(HKEY hkRoot, LPCWSTR szKeyName, BOOL bDelete,
|
|||
{
|
||||
printf("Couldn't allocate memory for the value names\n");
|
||||
|
||||
free(szCmdLine);
|
||||
res=ERROR_NOT_ENOUGH_MEMORY;
|
||||
goto end;
|
||||
}
|
||||
|
@ -388,6 +389,7 @@ static BOOL ProcessRunKeys(HKEY hkRoot, LPCWSTR szKeyName, BOOL bDelete,
|
|||
printf("Done processing cmd #%ld\n", i);
|
||||
}
|
||||
|
||||
free(szValue);
|
||||
res=ERROR_SUCCESS;
|
||||
|
||||
end:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue