From e9975ee126973482407eacf901b9b70dcb268b76 Mon Sep 17 00:00:00 2001
From: Roman Dadkov <romand@etersoft.ru>
Date: Tue, 22 Nov 2011 20:36:28 +0400
Subject: [PATCH] msi: fixing errors

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

diff --git a/dlls/msi/custom.c b/dlls/msi/custom.c
index 8b41e1e..091d269 100644
--- a/dlls/msi/custom.c
+++ b/dlls/msi/custom.c
@@ -1114,7 +1114,7 @@ static UINT HANDLE_CustomType50(MSIPACKAGE *package, LPCWSTR source,
 
     if (!(exe = msi_dup_property( package->db, source ))) return ERROR_SUCCESS;
 
-    deformat_string( package, target, &arg );
+    rc = deformat_string( package, target, &arg );
     TRACE("exe %s arg %s\n", debugstr_w(exe), debugstr_w(arg));
 
     if ( !rc )
@@ -1153,6 +1153,7 @@ static UINT HANDLE_CustomType50(MSIPACKAGE *package, LPCWSTR source,
         return ERROR_SUCCESS;
     }
     msi_free(cmd);
+    msi_free(arg);
 
     CloseHandle( info.hThread );
 
-- 
1.7.6.4
