From: Gunnar Beutner Date: Wed, 25 Feb 2015 13:05:31 +0000 (+0100) Subject: Fix valgrind warning in ExternalCommandListener::CommandPipeThread X-Git-Tag: v2.3.0~127 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=29ac204449a354a80816d50b008200fad8c0c2ae;p=icinga2 Fix valgrind warning in ExternalCommandListener::CommandPipeThread fixes #8536 --- diff --git a/lib/compat/externalcommandlistener.cpp b/lib/compat/externalcommandlistener.cpp index 8522ede08..95c6fc603 100644 --- a/lib/compat/externalcommandlistener.cpp +++ b/lib/compat/externalcommandlistener.cpp @@ -135,7 +135,7 @@ void ExternalCommandListener::CommandPipeThread(const String& commandPath) } } - delete line; + delete [] line; fclose(fp); } }