free memory for config structure explicitly

This commit is contained in:
Sergey Popov 2011-11-25 17:45:50 +04:00
parent ab22d61262
commit 4aa37602ec

View File

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