mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 21:55:03 +02:00
Revert "Fix a potential crash in ExternalCommandListener::CommandPipeThread"
This reverts commit 0d4768528dee7217f8a66065d824d044c1a877ed.
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] == '\r' || line[strlen(line) - 1] == '\n'))
|
||||||
line[strlen(line) - 1] = '\0';
|
line[strlen(line) - 1] = '\0';
|
||||||
|
|
||||||
Utility::QueueAsyncCallback(boost::bind(&ExternalCommandListener::ExecuteCommand, String(line)));
|
Utility::QueueAsyncCallback(boost::bind(&ExternalCommandListener::ExecuteCommand, line));
|
||||||
}
|
}
|
||||||
|
|
||||||
delete line;
|
delete line;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user