/*
- * $Id: asn.cc,v 1.49 1998/09/21 06:49:39 wessels Exp $
+ * $Id: asn.cc,v 1.50 1998/10/21 06:54:18 wessels Exp $
*
* DEBUG: section 53 AS Number handling
* AUTHOR: Duane Wessels, Kostas Anagnostakis
asnInit(void)
{
extern int max_keylen;
+ static int inited = 0;
max_keylen = 40;
- rn_init();
+ if (0 == inited++)
+ rn_init();
rn_inithead((void **) &AS_tree_head, 8);
asnAclInitialize(Config.aclList);
cachemgrRegister("asndb", "AS Number Database", asnStats, 0, 1);
/*
- * $Id: event.cc,v 1.22 1998/07/22 20:37:17 wessels Exp $
+ * $Id: event.cc,v 1.23 1998/10/21 06:54:21 wessels Exp $
*
* DEBUG: section 41 Event Processing
* AUTHOR: Henrik Nordstrom
e = e->next;
}
}
+
+void
+eventFreeMemory(void)
+{
+ struct ev_entry *event;
+ while ((event = tasks)) {
+ if (NULL != event->arg)
+ cbdataUnlock(event->arg);
+ xfree(event);
+ }
+ tasks = NULL;
+}
/*
- * $Id: main.cc,v 1.273 1998/10/10 14:57:41 wessels Exp $
+ * $Id: main.cc,v 1.274 1998/10/21 06:54:19 wessels Exp $
*
* DEBUG: section 1 Startup and Main Loop
* AUTHOR: Harvest Derived
clientdbFreeMemory();
httpHeaderCleanModule();
statFreeMemory();
+ eventFreeMemory();
#endif
memClean();
#if !XMALLOC_TRACE
/*
- * $Id: protos.h,v 1.281 1998/10/17 04:34:11 rousskov Exp $
+ * $Id: protos.h,v 1.282 1998/10/21 06:54:20 wessels Exp $
*
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
extern void cbdataDump(StoreEntry *);
extern void clientdbInit(void);
-extern void clientdbUpdate(struct in_addr, log_type, protocol_t, size_t);
+extern void clientdbUpdate(struct in_addr, log_type, protocol_t, size_t, request_flags);
extern int clientdbCutoffDenied(struct in_addr);
extern void clientdbDump(StoreEntry *);
extern void clientdbFreeMemory(void);
extern time_t eventNextTime(void);
extern void eventDelete(EVH * func, void *arg);
extern void eventInit(void);
+extern void eventFreeMemory(void);
extern void fd_close(int fd);
extern void fd_open(int fd, unsigned int type, const char *);