summaryrefslogtreecommitdiffhomepage
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 8bda2b9..b9c264a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -393,6 +393,8 @@ main (int argc, char **argv)
if (daemonized) setup_sig (SIGHUP, takesig, "SIGHUP", argv[0]);
setup_sig (SIGUSR1, takesig, "SIGUSR1", argv[0]);
+ loop_records_init();
+
/* Start the main loop */
log_message (LOG_INFO, "Starting main loop. Accepting connections.");
@@ -404,6 +406,8 @@ main (int argc, char **argv)
child_close_sock ();
child_free_children();
+ loop_records_destroy();
+
/* Remove the PID file */
if (config->pidpath != NULL && unlink (config->pidpath) < 0) {
log_message (LOG_WARNING,