msi: Only free a string in one place.
This commit is contained in:
parent
959c71846d
commit
4811743b36
@ -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,
|
|||||||
|
|
||||||
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user