mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 07:35:41 +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");
|
printf("Couldn't allocate memory for the value names\n");
|
||||||
|
|
||||||
|
free(szCmdLine);
|
||||||
res=ERROR_NOT_ENOUGH_MEMORY;
|
res=ERROR_NOT_ENOUGH_MEMORY;
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
@ -388,6 +389,7 @@ static BOOL ProcessRunKeys(HKEY hkRoot, LPCWSTR szKeyName, BOOL bDelete,
|
||||||
printf("Done processing cmd #%ld\n", i);
|
printf("Done processing cmd #%ld\n", i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(szValue);
|
||||||
res=ERROR_SUCCESS;
|
res=ERROR_SUCCESS;
|
||||||
|
|
||||||
end:
|
end:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue