[PATCH] msi: fix memory leak (Coverity)

Marcus Meissner marcus at jet.franken.de
Mon Feb 16 01:31:14 CST 2015


1269464 Resource leak
---
 dlls/msi/action.c | 1 +
 1 file changed, 1 insertion(+)

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




More information about the wine-patches mailing list