From: Gunnar Beutner Date: Wed, 4 Dec 2013 09:39:46 +0000 (+0100) Subject: Fix leak in the config parser. X-Git-Tag: v0.0.6~88^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c92625770cba4e0d65c5a32bb162f6bbeaf0ea76;p=icinga2 Fix leak in the config parser. Refs #4946 --- diff --git a/lib/config/config_parser.yy b/lib/config/config_parser.yy index 09e76b229..3798dce4a 100644 --- a/lib/config/config_parser.yy +++ b/lib/config/config_parser.yy @@ -573,6 +573,7 @@ aexpression: T_STRING | '~' aexpression { $$ = new Value(make_shared(AENegate, static_cast(*$2))); + delete $2; } | aexpression '+' aexpression {