fix memory leak at rail_client_execute()
This commit is contained in:
parent
ccdaf15a75
commit
7e5b766f78
@ -122,7 +122,11 @@ static UINT rail_client_execute(RailClientContext* context,
|
|||||||
&exec->workingDir); /* ShellWorkingDirectory */
|
&exec->workingDir); /* ShellWorkingDirectory */
|
||||||
rail_string_to_unicode_string(exec->RemoteApplicationArguments,
|
rail_string_to_unicode_string(exec->RemoteApplicationArguments,
|
||||||
&exec->arguments); /* RemoteApplicationCmdLine */
|
&exec->arguments); /* RemoteApplicationCmdLine */
|
||||||
return rail_send_client_exec_order(rail, exec);
|
UINT ret = rail_send_client_exec_order(rail, exec);
|
||||||
|
free(exec->exeOrFile.string);
|
||||||
|
free(exec->workingDir.string);
|
||||||
|
free(exec->arguments.string);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user