Commit 58bbe5ac authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

msi: Free records on error paths (Coverity).

parent 3f3404d2
......@@ -1376,7 +1376,10 @@ static UINT merge_verify_colnames(MSIQUERY *dbview, MSIQUERY *mergeview)
r = MSI_ViewGetColumnInfo(mergeview, MSICOLINFO_NAMES, &mergerec);
if (r != ERROR_SUCCESS)
{
msiobj_release(&dbrec->hdr);
return r;
}
count = MSI_RecordGetFieldCount(dbrec);
for (i = 1; i <= count; i++)
......@@ -1401,7 +1404,10 @@ static UINT merge_verify_colnames(MSIQUERY *dbview, MSIQUERY *mergeview)
r = MSI_ViewGetColumnInfo(mergeview, MSICOLINFO_TYPES, &mergerec);
if (r != ERROR_SUCCESS)
{
msiobj_release(&dbrec->hdr);
return r;
}
count = MSI_RecordGetFieldCount(dbrec);
for (i = 1; i <= count; i++)
......
......@@ -3552,6 +3552,7 @@ static LRESULT msi_dialog_oncreate( HWND hwnd, LPCREATESTRUCTW cs )
if (!dialog->default_font)
{
dialog->default_font = strdupW(dfv);
msiobj_release( &rec->hdr );
if (!dialog->default_font) return -1;
}
......
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