msi: Fix a memory leak (Coverity).
This commit is contained in:
parent
b0de71f214
commit
4afca1787f
1 changed files with 4 additions and 0 deletions
|
@ -5263,9 +5263,13 @@ static UINT ACTION_ResolveSource(MSIPACKAGE* package)
|
|||
MSI_RecordSetStringW(record, 0, NULL);
|
||||
rc = MSI_ProcessMessage(package, INSTALLMESSAGE_ERROR, record);
|
||||
if (rc == IDCANCEL)
|
||||
{
|
||||
msiobj_release(&record->hdr);
|
||||
return ERROR_INSTALL_USEREXIT;
|
||||
}
|
||||
attrib = GetFileAttributesW(package->db->path);
|
||||
}
|
||||
msiobj_release(&record->hdr);
|
||||
rc = ERROR_SUCCESS;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue