diff --git a/dlls/msi/table.c b/dlls/msi/table.c index f67981c7f46..bd15a8e6289 100644 --- a/dlls/msi/table.c +++ b/dlls/msi/table.c @@ -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)