mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 19:26:05 +00:00
fix resource leak, CID 611
svn path=/trunk/; revision=36813
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user