free static stuff on shutdown.
[citadel.git] / citadel / serv_extensions.c
index 861ecb8497adee990ab428fb624c116f78b1c599..cf1270cc6f7f4263027405adf887bb610b67070c 100644 (file)
 
 #include "ctdl_module.h"
 
-#ifndef HAVE_SNPRINTF
-#include <stdarg.h>
-#include "snprintf.h"
-#endif
 
 int DebugModules = 0;
  
@@ -583,6 +579,7 @@ void CtdlDestroyEVCleanupHooks(void)
        {
                MODM_syslog(LOG_DEBUG, "Destroyed cleanup function\n");
                p = cur->next;
+               cur->h_function_pointer();
                free(cur);
                cur = p;
        }