]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Free modules before main config
authorAlan T. DeKok <aland@freeradius.org>
Mon, 18 Feb 2013 19:07:46 +0000 (14:07 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 18 Feb 2013 19:07:46 +0000 (14:07 -0500)
Now that the modules are cleaned up correctly

src/main/radiusd.c

index 556cef2204e64b3d4669a2fee69f2f2372fec013..897a514e3d896e6b3702f2e60750b0207f2b4d2b 100644 (file)
@@ -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