Marcus Meissner : oledb32: Free memory on error exit (Coverity).

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jun 15 08:49:08 CDT 2015


Module: wine
Branch: master
Commit: 99549e1e2e1bfa52adb667efc0b8d64048690237
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=99549e1e2e1bfa52adb667efc0b8d64048690237

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Sat Jun 13 09:21:06 2015 +0200

oledb32: Free memory on error exit (Coverity).

---

 dlls/oledb32/datainit.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/oledb32/datainit.c b/dlls/oledb32/datainit.c
index 3c5293a..3a76e0b 100644
--- a/dlls/oledb32/datainit.c
+++ b/dlls/oledb32/datainit.c
@@ -520,6 +520,8 @@ static HRESULT get_dbpropset_from_proplist(struct dbprops *props, DBPROPSET **pr
         if (FAILED(hr))
         {
             ERR("failed to init property %s value as type %d\n", debugstr_w(pair->name), descr->type);
+            free_dbpropset(1, *propset);
+            *propset = NULL;
             return hr;
         }
 




More information about the wine-cvs mailing list