Commit fe91ae51 authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

msi: Fix a leak on error path (Coverity).

parent d2f3fc03
......@@ -4033,7 +4033,11 @@ static msi_dialog *dialog_create( MSIPACKAGE *package, const WCHAR *name, msi_di
msiobj_release( &rec->hdr );
rec = MSI_CreateRecord(2);
if (!rec) return NULL;
if (!rec)
{
msi_dialog_destroy(dialog);
return NULL;
}
MSI_RecordSetStringW(rec, 1, name);
MSI_RecordSetStringW(rec, 2, szDialogCreated);
MSI_ProcessMessage(package, INSTALLMESSAGE_ACTIONSTART, rec);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment