msi: Fix memory leak on error path in MSI_OpenPackageW (scan-build).
This commit is contained in:
parent
3caa27eafb
commit
4db2ffa60e
1 changed files with 3 additions and 0 deletions
|
@ -1411,7 +1411,10 @@ UINT MSI_OpenPackageW(LPCWSTR szPackage, DWORD dwOptions, MSIPACKAGE **pPackage)
|
|||
TRACE("opening package %s\n", debugstr_w( localfile ));
|
||||
r = MSI_OpenDatabaseW( localfile, MSIDBOPEN_TRANSACT, &db );
|
||||
if (r != ERROR_SUCCESS)
|
||||
{
|
||||
free( product_version );
|
||||
return r;
|
||||
}
|
||||
|
||||
if (product_version)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue