]> granicus.if.org Git - icinga2/commitdiff
Fix memory leak in the config parser
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 5 Nov 2014 08:29:15 +0000 (09:29 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 5 Nov 2014 08:29:15 +0000 (09:29 +0100)
refs #7566

lib/config/config_parser.yy

index 2e0b1da0dd43a487549111d21bb87664c247b41a..0b801f5f18e163557546bfb9c47ed713dab87830 100644 (file)
@@ -530,6 +530,7 @@ indexer: identifier
        {
                $$ = $2;
                $$->Insert(0, MakeLiteral($1));
+               free($1);
        }
        ;