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

msi: Fix memory leak on error path in MSI_OpenPackageW (scan-build).

This commit is contained in:
Alex Henrie 2023-06-11 21:17:09 -06:00 committed by Alexandre Julliard
parent 3caa27eafb
commit 4db2ffa60e

View file

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