mirror of https://github.com/Icinga/icinga2.git
Revert "Fix a potential crash in ExternalCommandListener::CommandPipeThread"
This reverts commit 0d4768528d
.
This commit is contained in:
parent
0d4768528d
commit
071ac754ca
|
@ -130,7 +130,7 @@ void ExternalCommandListener::CommandPipeThread(const String& commandPath)
|
|||
(line[strlen(line) - 1] == '\r' || line[strlen(line) - 1] == '\n'))
|
||||
line[strlen(line) - 1] = '\0';
|
||||
|
||||
Utility::QueueAsyncCallback(boost::bind(&ExternalCommandListener::ExecuteCommand, String(line)));
|
||||
Utility::QueueAsyncCallback(boost::bind(&ExternalCommandListener::ExecuteCommand, line));
|
||||
}
|
||||
|
||||
delete line;
|
||||
|
|
Loading…
Reference in New Issue