msi: Fix a record leak on failure removing a column (Coverity).
This commit is contained in:
parent
203d282a78
commit
195168351f
|
@ -1970,7 +1970,10 @@ static UINT TABLE_remove_column(struct tagMSIVIEW *view, LPCWSTR table, UINT num
|
|||
|
||||
r = TABLE_CreateView(tv->db, szColumns, &columns);
|
||||
if (r != ERROR_SUCCESS)
|
||||
{
|
||||
msiobj_release(&rec->hdr);
|
||||
return r;
|
||||
}
|
||||
|
||||
r = msi_table_find_row((MSITABLEVIEW *)columns, rec, &row, NULL);
|
||||
if (r != ERROR_SUCCESS)
|
||||
|
|
Loading…
Reference in New Issue