No more cleanup hooks. The OS can reclaim memory better than we can. We want to...
[citadel.git] / citadel / modules / inetcfg / serv_inetcfg.c
index 971c672cf598fb381e60d52f7fbb7ed8e68b8bd1..89e8e5633a24136fdc7bdb5d0491c2f8f84611a8 100644 (file)
@@ -4,7 +4,7 @@
  * wrote it as a module merely to keep things as clean and loosely coupled
  * as possible.
  *
- * Copyright (c) 1987-2020 by the citadel.org team
+ * Copyright (c) 1987-2021 by the citadel.org team
  *
  * This program is open source software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 3.
@@ -136,15 +136,6 @@ void inetcfg_init(void) {
 /*****************************************************************************/
 /*                      MODULE INITIALIZATION STUFF                          */
 /*****************************************************************************/
-void cleanup_inetcfg(void)
-{
-       char *buf;
-       buf = inetcfg;
-       inetcfg = NULL;
-       if (buf != NULL) {
-               free(buf);
-       }
-}
 
 
 CTDL_MODULE_INIT(inetcfg)
@@ -153,7 +144,6 @@ CTDL_MODULE_INIT(inetcfg)
        {
                CtdlRegisterMessageHook(inetcfg_aftersave, EVT_AFTERSAVE);
                inetcfg_init();
-               CtdlRegisterCleanupHook(cleanup_inetcfg);
        }
        
        /* return our module name for the log */