free memory for config structure explicitly
This commit is contained in:
parent
ab22d61262
commit
4aa37602ec
2
yasnd.c
2
yasnd.c
@ -132,6 +132,8 @@ void termination_handler(int signum)
|
|||||||
{
|
{
|
||||||
log_event("SIGTERM captured, daemon stopping");
|
log_event("SIGTERM captured, daemon stopping");
|
||||||
closelog();
|
closelog();
|
||||||
|
// free config structure
|
||||||
|
cfg_free(cfg);
|
||||||
// free hosts structures memory
|
// free hosts structures memory
|
||||||
if (hosts!=NULL)
|
if (hosts!=NULL)
|
||||||
free(hosts);
|
free(hosts);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user