msi: Fix some memory leaks.
This commit is contained in:
parent
6bd7451ece
commit
525ceb7085
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue