From 94f4c0f07ded9d282db54523e049725029a8f5d2 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Wed, 12 Jan 2011 14:04:13 +0100 Subject: [PATCH] msi: Fix a memory leak (valgrind). --- dlls/msi/action.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index 7ccc7c6b40c..8f2d116afd2 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; }