[icinga-checkins] icinga.org: icinga-core/mfriedrich/core: core: plug memory leak in xodtemplate.c - free display_name correctly

git at icinga.org git at icinga.org
Tue Aug 23 19:00:09 CEST 2011


Module: icinga-core
Branch: mfriedrich/core
Commit: 6150e39a4f88de6bbadb4b0054cc61bcbe663d5a
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=6150e39a4f88de6bbadb4b0054cc61bcbe663d5a

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Tue Aug 23 15:59:26 2011 +0200

core: plug memory leak in xodtemplate.c - free display_name correctly

$ sudo valgrind --leak-check=full --log-file=valgrind.log base/icinga /etc/nagios/icinga.cfg

---

 xdata/xodtemplate.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/xdata/xodtemplate.c b/xdata/xodtemplate.c
index 20f8c64..c1bf3e9 100644
--- a/xdata/xodtemplate.c
+++ b/xdata/xodtemplate.c
@@ -12066,6 +12066,7 @@ int xodtemplate_free_memory(void) {
 		my_free(this_host->name);
 		my_free(this_host->host_name);
 		my_free(this_host->alias);
+		my_free(this_host->display_name);
 		my_free(this_host->address);
 		my_free(this_host->address6);
 		my_free(this_host->parents);
@@ -12108,6 +12109,7 @@ int xodtemplate_free_memory(void) {
 		my_free(this_service->hostgroup_name);
 		my_free(this_service->host_name);
 		my_free(this_service->service_description);
+		my_free(this_service->display_name);
 		my_free(this_service->service_groups);
 		my_free(this_service->check_command);
 		my_free(this_service->check_period);





More information about the icinga-checkins mailing list