msi: Fix a record leak on failure removing a column (Coverity).

This commit is contained in:
Nikolay Sivov 2014-03-27 06:57:30 +04:00 committed by Alexandre Julliard
parent 203d282a78
commit 195168351f
1 changed files with 3 additions and 0 deletions

View File

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