]> granicus.if.org Git - icinga2/commitdiff
Fix leak in the config parser.
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 4 Dec 2013 09:39:46 +0000 (10:39 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 4 Dec 2013 09:39:46 +0000 (10:39 +0100)
Refs #4946

lib/config/config_parser.yy

index 09e76b2291bb8401a9d1dc1566eae39fa302d266..3798dce4a8fee13fa55785c52d5c2aefc57aeb27 100644 (file)
@@ -573,6 +573,7 @@ aexpression: T_STRING
        | '~' aexpression
        {
                $$ = new Value(make_shared<AExpression>(AENegate, static_cast<AExpression::Ptr>(*$2)));
+               delete $2;
        }
        | aexpression '+' aexpression
        {