Commit 4811743b authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

msi: Only free a string in one place.

parent 959c7184
...@@ -561,7 +561,7 @@ static UINT HANDLE_CustomType2(MSIPACKAGE *package, LPCWSTR source, ...@@ -561,7 +561,7 @@ static UINT HANDLE_CustomType2(MSIPACKAGE *package, LPCWSTR source,
PROCESS_INFORMATION info; PROCESS_INFORMATION info;
BOOL rc; BOOL rc;
INT len; INT len;
WCHAR *deformated; WCHAR *deformated = NULL;
WCHAR *cmd; WCHAR *cmd;
static const WCHAR spc[] = {' ',0}; static const WCHAR spc[] = {' ',0};
UINT r = ERROR_SUCCESS; UINT r = ERROR_SUCCESS;
...@@ -595,15 +595,13 @@ static UINT HANDLE_CustomType2(MSIPACKAGE *package, LPCWSTR source, ...@@ -595,15 +595,13 @@ static UINT HANDLE_CustomType2(MSIPACKAGE *package, LPCWSTR source,
rc = CreateProcessW(NULL, cmd, NULL, NULL, FALSE, 0, NULL, rc = CreateProcessW(NULL, cmd, NULL, NULL, FALSE, 0, NULL,
c_collen, &si, &info); c_collen, &si, &info);
msi_free(cmd);
if ( !rc ) if ( !rc )
{ {
ERR("Unable to execute command %s\n", debugstr_w(cmd)); ERR("Unable to execute command %s\n", debugstr_w(cmd));
msi_free(cmd);
return ERROR_SUCCESS; return ERROR_SUCCESS;
} }
msi_free(cmd);
r = process_handle(package, type, info.hThread, info.hProcess, action, r = process_handle(package, type, info.hThread, info.hProcess, action,
&finished); &finished);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment