From: Stephan Bosch Date: Tue, 5 Aug 2025 18:53:44 +0000 (+0200) Subject: auth: main - Free global auth settings later X-Git-Tag: 2.4.2~348 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fe15064106a7e6f16e37fba416ba84c253d6b18;p=thirdparty%2Fdovecot%2Fcore.git 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. --- 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();