[icinga-checkins] icinga.org: icinga-core/r1.5: plug memory leak for svc display_name on reload too

git at icinga.org git at icinga.org
Wed Aug 24 16:00:35 CEST 2011


Module: icinga-core
Branch: r1.5
Commit: 07b749fcdd2bbda35ffe80990d45483f427dc2b8
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=07b749fcdd2bbda35ffe80990d45483f427dc2b8

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Wed Aug 24 15:18:37 2011 +0200

plug memory leak for svc display_name on reload too

fixes #1841

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

---

 common/objects.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/common/objects.c b/common/objects.c
index 7100c5a..fdd7d86 100644
--- a/common/objects.c
+++ b/common/objects.c
@@ -1771,6 +1771,7 @@ service *add_service(char *host_name, char *description, char *display_name, cha
 		my_free(new_service->event_handler);
 		my_free(new_service->service_check_command);
 		my_free(new_service->description);
+		my_free(new_service->display_name);
 		my_free(new_service->host_name);
 		my_free(new_service);
 		return NULL;





More information about the icinga-checkins mailing list