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);