1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

msi: Fix a memory leak (Coverity).

This commit is contained in:
Zhiyi Zhang 2023-12-30 11:58:04 +08:00 committed by Alexandre Julliard
parent b0de71f214
commit 4afca1787f

View file

@ -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