From 35f0f4b05ed92e157aeef123a561f072d7d44f3e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Sun, 20 Apr 2008 20:55:17 +0000 Subject: [PATCH] * regulary shut down libcitadel, so we don't leak the icondir hash on shutdown. --- webcit/webserver.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webcit/webserver.c b/webcit/webserver.c index 9ecc7d5d4..304241e69 100644 --- a/webcit/webserver.c +++ b/webcit/webserver.c @@ -567,6 +567,7 @@ void start_daemon(char *pid_file) if (current_child < 0) { perror("fork"); + ShutDownLibCitadel (); exit(errno); } @@ -621,6 +622,7 @@ void start_daemon(char *pid_file) if (pid_file) { unlink(pid_file); } + ShutDownLibCitadel (); exit(WEXITSTATUS(status)); } @@ -924,6 +926,7 @@ int main(int argc, char **argv) /* now the original thread becomes another worker */ worker_entry(); + ShutDownLibCitadel (); return 0; } @@ -998,6 +1001,7 @@ void worker_entry(void) free_zone_directory (); icaltimezone_release_zone_tab (); icalmemory_free_ring (); + ShutDownLibCitadel (); lprintf(2, "master shutdown exiting!.\n"); exit(0); } -- 2.30.2