fix memory leak at rail_client_execute()

This commit is contained in:
weizhenwei 2017-06-13 15:16:09 +08:00
parent ccdaf15a75
commit 7e5b766f78

View File

@ -122,7 +122,11 @@ static UINT rail_client_execute(RailClientContext* context,
&exec->workingDir); /* ShellWorkingDirectory */
rail_string_to_unicode_string(exec->RemoteApplicationArguments,
&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;
}
/**