]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
hoist TLS cleanup to before mainconfig cleanup
authorAlan T. DeKok <aland@freeradius.org>
Tue, 30 Jan 2024 21:05:41 +0000 (16:05 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 30 Jan 2024 21:12:20 +0000 (16:12 -0500)
src/bin/radiusd.c

index b1113b6936ef23272ac45170f8e237ffb27d9bc2..607e817c60472bc458ccbe8f2a52d2fa4a63ee8b 100644 (file)
@@ -1118,16 +1118,16 @@ cleanup:
         */
        modules_rlm_free();
 
+#ifdef WITH_TLS
+       fr_tls_dict_free();
+#endif
+
        /*
         *  And now nothing should be left anywhere except the
         *  parsed configuration items.
         */
        main_config_free(&config);
 
-#ifdef WITH_TLS
-       fr_tls_dict_free();
-#endif
-
        /*
         *  Cleanup everything else
         */