msi: Fix memory leak (Coverity).
This commit is contained in:
parent
69a6138350
commit
c4bf8a85ee
|
@ -6968,6 +6968,7 @@ static UINT ITERATE_WriteEnvironmentString( MSIRECORD *rec, LPVOID param )
|
|||
data = msi_alloc(size);
|
||||
if (!data)
|
||||
{
|
||||
msi_free(deformatted);
|
||||
RegCloseKey(env);
|
||||
return ERROR_OUTOFMEMORY;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue