@ -57,7 +57,7 @@ public:
///Kill the process.
void kill(bool force=false);
///Kill a given process id.
///Kill a given process id. Use kill(bool force) instead if possible.
static void kill(id_type id, bool force=false);
private:
@ -124,7 +124,9 @@ Process::id_type Process::open(const std::string &command, const std::string &pa
BOOL bSuccess = CreateProcess(NULL, command_cstr, NULL, NULL, TRUE, 0,
NULL, path_ptr, &siStartInfo, &process_info);
delete[] path_ptr;
delete[] command_cstr;
if(!bSuccess) {
CloseHandle(process_info.hProcess);
CloseHandle(process_info.hThread);