]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: main - Free global auth settings later
authorStephan Bosch <stephan.bosch@open-xchange.com>
Tue, 5 Aug 2025 18:53:44 +0000 (20:53 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Thu, 9 Oct 2025 08:41:22 +0000 (08:41 +0000)
Only then we can be truly sure it is not used anymore during cleanup of other
sub-systems.

src/auth/main.c

index c8aae2bc19ab5054ad0d0150aff8b02ec31528b0..99e78d87108589aaab925a85a55e911ae2745bd7 100644 (file)
@@ -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();