Marcus Meissner : msi: Fix memory leak (Coverity).

Alexandre Julliard julliard at wine.codeweavers.com
Mon Feb 16 10:01:20 CST 2015


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

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Mon Feb 16 08:31:14 2015 +0100

msi: Fix memory leak (Coverity).

---

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

diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index afded69..ed09be7 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -6968,6 +6968,7 @@ static UINT ITERATE_WriteEnvironmentString( MSIRECORD *rec, LPVOID param )
         data = msi_alloc(size);
         if (!data)
         {
+            msi_free(deformatted);
             RegCloseKey(env);
             return ERROR_OUTOFMEMORY;
         }




More information about the wine-cvs mailing list