Make sure to release the package we grabbed on the error path.
This commit is contained in:
parent
348449a486
commit
2acf5086ff
|
@ -1787,6 +1787,7 @@ msi_dialog *msi_dialog_create( MSIPACKAGE* package, LPCWSTR szDialogName,
|
|||
rec = msi_get_dialog_record( dialog );
|
||||
if( !rec )
|
||||
{
|
||||
msiobj_release( &package->hdr );
|
||||
HeapFree( GetProcessHeap(), 0, dialog );
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue