[icinga-checkins] icinga.org: icinga-core/mfriedrich/workers: FIXME - free_memory called via my_system_r child deletes pqueue, double free() problem

git at icinga.org git at icinga.org
Tue Aug 7 14:14:16 CEST 2012


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

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Tue Aug  7 14:13:34 2012 +0200

FIXME - free_memory called via my_system_r child deletes pqueue, double free() problem

---

 base/utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/base/utils.c b/base/utils.c
index e8ab18e..345eb1b 100644
--- a/base/utils.c
+++ b/base/utils.c
@@ -407,7 +407,7 @@ int my_system_r(icinga_macros *mac, char *cmd, int timeout, int *early_timeout,
 		/* free allocated memory */
 		/* this needs to be done last, so we don't free memory for variables before they're used above */
 		if (free_child_process_memory == TRUE)
-			free_memory(mac);
+			//free_memory(mac); //FIXME this should call a function without double free()'ing our scheduling queue
 #endif
 
 		_exit(result);





More information about the icinga-checkins mailing list