From 4aa37602ec0326211901bc77ba4eeddfef923fdd Mon Sep 17 00:00:00 2001 From: Sergey Popov Date: Fri, 25 Nov 2011 17:45:50 +0400 Subject: [PATCH] free memory for config structure explicitly --- yasnd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yasnd.c b/yasnd.c index 9893ce9..9e38e25 100644 --- a/yasnd.c +++ b/yasnd.c @@ -132,6 +132,8 @@ void termination_handler(int signum) { log_event("SIGTERM captured, daemon stopping"); closelog(); + // free config structure + cfg_free(cfg); // free hosts structures memory if (hosts!=NULL) free(hosts);