From: Alan T. DeKok Date: Wed, 22 Nov 2023 18:26:37 +0000 (-0500) Subject: move log_global_free() to main_config X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a959b5e83101eb2350e92664745b28fa465050f;p=thirdparty%2Ffreeradius-server.git move log_global_free() to main_config as log_global_init() is now there too --- diff --git a/src/bin/radiusd.c b/src/bin/radiusd.c index 41cdc19a4ce..4688d19cf47 100644 --- a/src/bin/radiusd.c +++ b/src/bin/radiusd.c @@ -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(); diff --git a/src/lib/server/main_config.c b/src/lib/server/main_config.c index dea90319d5d..27ce768605c 100644 --- a/src/lib/server/main_config.c +++ b/src/lib/server/main_config.c @@ -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.