From 9cbe09be06d4b75fb74dffb5fccf79ff41a8361a Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Thu, 8 Sep 2005 11:03:18 +0000 Subject: [PATCH] Fix memory leaks in custom actions. --- dlls/msi/custom.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/msi/custom.c b/dlls/msi/custom.c index 114e6753362..c3edfa275ad 100644 --- a/dlls/msi/custom.c +++ b/dlls/msi/custom.c @@ -188,6 +188,7 @@ UINT ACTION_CustomAction(MSIPACKAGE *package,LPCWSTR action, BOOL execute) MSI_SetPropertyW(package,szActionData,actiondata); else MSI_SetPropertyW(package,szActionData,szBlank); + HeapFree(GetProcessHeap(),0,actiondata); } } else if (!check_execution_scheduling_options(package,action,type)) @@ -697,6 +698,7 @@ static UINT HANDLE_CustomType50(MSIPACKAGE *package, LPCWSTR source, HeapFree(GetProcessHeap(),0,deformated); } + HeapFree(GetProcessHeap(),0,prop); TRACE("executing exe %s \n",debugstr_w(cmd)); -- 2.11.4.GIT