]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
move log_global_free() to main_config
authorAlan T. DeKok <aland@freeradius.org>
Wed, 22 Nov 2023 18:26:37 +0000 (13:26 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 22 Nov 2023 18:26:37 +0000 (13:26 -0500)
as log_global_init() is now there too

src/bin/radiusd.c
src/lib/server/main_config.c

index 41cdc19a4ce22a1fac3258fe3701834e1c3969c0..4688d19cf47798d1ff1794856fa61d6508ce95dd 100644 (file)
@@ -1087,12 +1087,6 @@ cleanup:
         */
        fr_atexit_thread_trigger_all();
 
-       /*
-        *  Frees request specific logging resources which is OK
-        *  because all the requests will have been stopped.
-        */
-       log_global_free();
-
        fr_snmp_free();
 
        server_free();
index dea90319d5dfce3ca0b0208b18879020bbdb374a..27ce768605cd34ee1beace8f7ebdbc1dd97759c5 100644 (file)
@@ -1427,6 +1427,12 @@ do {\
  */
 int main_config_free(main_config_t **config)
 {
+       /*
+        *  Frees request specific logging resources which is OK
+        *  because all the requests will have been stopped.
+        */
+       log_global_free();
+
        /*
         *      Clean up the configuration data
         *      structures.