msi: Fix some memory leaks.

This commit is contained in:
Mike McCormack 2006-07-27 23:17:57 +09:00 committed by Alexandre Julliard
parent 6bd7451ece
commit 525ceb7085
2 changed files with 2 additions and 0 deletions

View File

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

View File

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