[icinga-checkins] icinga.org: icinga2/master: Fix memory leak in the config parser

git at icinga.org git at icinga.org
Wed Nov 5 09:29:33 CET 2014


Module: icinga2
Branch: master
Commit: ad14ff6d6b0859387cdfc1b1f7a0f7484e8dc670
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=ad14ff6d6b0859387cdfc1b1f7a0f7484e8dc670

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Wed Nov  5 09:29:15 2014 +0100

Fix memory leak in the config parser

refs #7566

---

 lib/config/config_parser.yy |    1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/config/config_parser.yy b/lib/config/config_parser.yy
index 2e0b1da..0b801f5 100644
--- a/lib/config/config_parser.yy
+++ b/lib/config/config_parser.yy
@@ -530,6 +530,7 @@ indexer: identifier
 	{
 		$$ = $2;
 		$$->Insert(0, MakeLiteral($1));
+		free($1);
 	}
 	;
 



More information about the icinga-checkins mailing list