Massively cleaned up #include's, so they're in a consistent
[freeradius.git] / src / modules / rlm_fastusers / rlm_fastusers.c
index ceaa28a..b63251c 100644 (file)
  *
  *   You should have received a copy of the GNU General Public License
  *   along with this program; if not, write to the Free Software
- *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  *
- * Copyright 2000  The FreeRADIUS server project
+ * Copyright 2000,2006  The FreeRADIUS server project
  * Copyright 2000  Jeff Carneal <jeff@apex.net>
  */
 
-#include        <freeradius-devel/autoconf.h>
+#include        <freeradius-devel/ident.h>
+RCSID("$Id$")
+
+#include       <freeradius-devel/radiusd.h>
+#include       <freeradius-devel/modules.h>
 
-#include       <sys/socket.h>
-#include       <sys/time.h>
 #include       <sys/stat.h>
 
-#include       <stdio.h>
-#include       <stdlib.h>
-#include       <string.h>
 #include       <pwd.h>
 #include       <grp.h>
 #include       <ctype.h>
 #include       <fcntl.h>
 #include       <limits.h>
 
-#include       <freeradius-devel/radiusd.h>
-#include       <freeradius-devel/modules.h>
-
 struct fastuser_instance {
        char *compat_mode;
        int hash_reload;
@@ -765,13 +761,9 @@ static int fastuser_detach(void *instance)
                }
        }
 
-       free(inst->compat_mode);
        free(inst->hashtable);
        pairlist_free(&inst->defaults);
        pairlist_free(&inst->acctusers);
-       free(inst->usersfile);
-       free(inst->acctusersfile);
-       free(inst);
        return 0;
 }