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

git at icinga.org git at icinga.org
Thu Aug 25 11:23:25 CEST 2011


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

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

Signed-off-by: Michael Friedrich <michael.friedrich at univie.ac.at>

---

 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