[1/2] msi: Fix a memory leak (valgrind).

Hans Leidekker hans at codeweavers.com
Wed Jan 12 07:04:13 CST 2011


---
 dlls/msi/action.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index 7ccc7c6..8f2d116 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -2735,6 +2735,7 @@ static UINT ITERATE_WriteRegistryValues(MSIRECORD *row, LPVOID param)
     {
         ERR("Could not create key %s\n", debugstr_w(keypath));
         msi_free(uikey);
+        msi_free(keypath);
         return ERROR_SUCCESS;
     }
 
@@ -2786,6 +2787,7 @@ static UINT ITERATE_WriteRegistryValues(MSIRECORD *row, LPVOID param)
     msi_free(value_data);
     msi_free(deformated);
     msi_free(uikey);
+    msi_free(keypath);
 
     return ERROR_SUCCESS;
 }
-- 
1.7.1







More information about the wine-patches mailing list