diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index 8c9139dd6c6..84557d7f106 100644 --- a/dlls/msi/msi.c +++ b/dlls/msi/msi.c @@ -1440,6 +1440,7 @@ UINT WINAPI MSI_ProvideQualifiedComponentEx(LPCWSTR szComponent, else rc = MSI_GetComponentPath(szProduct, component, lpPathBuf, pcchPathBuf); + msi_free( info ); if (rc != INSTALLSTATE_LOCAL) return ERROR_FILE_NOT_FOUND; diff --git a/dlls/msi/registry.c b/dlls/msi/registry.c index e9c33f1f9ad..ddeb3a60ac0 100644 --- a/dlls/msi/registry.c +++ b/dlls/msi/registry.c @@ -918,6 +918,7 @@ UINT WINAPI MSI_EnumComponentQualifiers( LPCWSTR szComponent, DWORD iIndex, if (val_sz > val_max) { val_max = val_sz + sizeof (WCHAR); + msi_free( val ); val = msi_alloc( val_max * sizeof (WCHAR) ); if (!val) goto end;