From: Alan T. DeKok Date: Mon, 18 Feb 2013 19:07:46 +0000 (-0500) Subject: Free modules before main config X-Git-Tag: release_2_2_1~146 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8ff8b8b5c9df161eb5d6248dd026007cc7782f3;p=thirdparty%2Ffreeradius-server.git Free modules before main config Now that the modules are cleaned up correctly --- diff --git a/src/main/radiusd.c b/src/main/radiusd.c index 556cef2204e..897a514e3d8 100644 --- a/src/main/radiusd.c +++ b/src/main/radiusd.c @@ -460,11 +460,6 @@ int main(int argc, char *argv[]) radius_event_free(); - /* - * Free the configuration items. - */ - free_mainconfig(); - /* * Detach any modules. */ @@ -472,6 +467,11 @@ int main(int argc, char *argv[]) xlat_free(); /* modules may have xlat's */ + /* + * Free the configuration items. + */ + free_mainconfig(); + free(radius_dir); #ifdef WIN32