From 1fe15064106a7e6f16e37fba416ba84c253d6b18 Mon Sep 17 00:00:00 2001 From: Stephan Bosch Date: Tue, 5 Aug 2025 20:53:44 +0200 Subject: [PATCH] auth: main - Free global auth settings later Only then we can be truly sure it is not used anymore during cleanup of other sub-systems. --- src/auth/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/auth/main.c b/src/auth/main.c index c8aae2bc19..99e78d8710 100644 --- a/src/auth/main.c +++ b/src/auth/main.c @@ -278,7 +278,6 @@ static void main_deinit(void) mech_register_deinit(&mech_reg); mech_otp_deinit(); mech_deinit(global_auth_settings); - settings_free(global_auth_settings); /* allow modules to unregister their dbs/drivers/etc. before freeing the whole data structures containing them. */ @@ -289,6 +288,8 @@ static void main_deinit(void) passdb_cache_deinit(); password_schemes_deinit(); + settings_free(global_auth_settings); + sql_drivers_deinit(); child_wait_deinit(); -- 2.47.3