-/* $Id: debug.cc,v 1.12 1996/04/08 18:39:29 wessels Exp $ */
+/* $Id: debug.cc,v 1.13 1996/04/14 03:06:33 wessels Exp $ */
#include "squid.h"
return;
}
if (debug_log_file)
- free(debug_log_file);
+ xfree(debug_log_file);
debug_log_file = xstrdup(logfile); /* keep a static copy */
debug_log = fopen(logfile, "a+");
if (!debug_log) {
-/* $Id: ipcache.cc,v 1.22 1996/04/12 04:34:17 wessels Exp $ */
+/* $Id: ipcache.cc,v 1.23 1996/04/14 03:06:34 wessels Exp $ */
/*
* DEBUG: Section 14 ipcache: IP Cache
if (p->next) {
/* there is something along the line */
e->pending_head = p->next;
- free(p->data);
- free(p);
+ safe_free(p->data);
+ safe_free(p);
} else {
/* it is the only entry */
e->pending_head = e->pending_tail = NULL;
- free(p->data);
- free(p);
+ safe_free(p->data);
+ safe_free(p);
}
} else if (p == e->pending_tail) {
/* it's at the tail */
e->pending_tail = q;
q->next = NULL;
- free(p->data);
- free(p);
+ safe_free(p->data);
+ safe_free(p);
} else {
/* it's in the middle */
/* skip it in the list */
q->next = p->next;
- free(p->data);
- free(p);
+ safe_free(p->data);
+ safe_free(p);
}
return 1;
}