Sven Baars : msi: Fix a leak (Coverity).

Alexandre Julliard julliard at winehq.org
Mon Aug 3 16:35:37 CDT 2020


Module: wine
Branch: master
Commit: 462edf6e2a79208d6c88ac6aeb760733d571b7c5
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=462edf6e2a79208d6c88ac6aeb760733d571b7c5

Author: Sven Baars <sbaars at codeweavers.com>
Date:   Sun Aug  2 19:20:25 2020 +0200

msi: Fix a leak (Coverity).

Signed-off-by: Sven Baars <sbaars at codeweavers.com>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msi/table.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/msi/table.c b/dlls/msi/table.c
index 612a369597..e9d6e8804e 100644
--- a/dlls/msi/table.c
+++ b/dlls/msi/table.c
@@ -2887,6 +2887,7 @@ UINT TransformView_Create( MSIDATABASE *db, string_table *st, LPCWSTR name, MSIV
             colinfo[idx - 1].colname = msi_string_lookup( st, name_id, NULL );
         else
             ERR( "column name %s is not defined in strings table\n", wine_dbgstr_w(name) );
+        msiobj_release( &rec->hdr );
     }
     MSI_ViewClose( q );
     msiobj_release( &q->hdr );




More information about the wine-cvs mailing list