Module: wine Branch: master Commit: 203d282a78c4e022a3a4feb0d98aac7c154f83e5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=203d282a78c4e022a3a4feb0d9...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Thu Mar 27 06:56:14 2014 +0400
msi: Fix a record leak on error path (Coverity).
---
dlls/msi/table.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/dlls/msi/table.c b/dlls/msi/table.c index f67981c..bd15a8e 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)