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

This commit is contained in:
Nikolay Sivov 2014-03-27 06:56:14 +04:00 committed by Alexandre Julliard
parent c01c0b52ed
commit 203d282a78

View file

@ -2092,7 +2092,10 @@ static UINT TABLE_drop(struct tagMSIVIEW *view)
r = TABLE_CreateView(tv->db, szTables, &tables);
if (r != ERROR_SUCCESS)
{
msiobj_release(&rec->hdr);
return r;
}
r = msi_table_find_row((MSITABLEVIEW *)tables, rec, &row, NULL);
if (r != ERROR_SUCCESS)