]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
various MLK fixes
authorwessels <>
Wed, 29 Oct 1997 03:42:50 +0000 (03:42 +0000)
committerwessels <>
Wed, 29 Oct 1997 03:42:50 +0000 (03:42 +0000)
src/client_side.cc
src/errorpage.cc
src/ipcache.cc
src/store.cc
src/wais.cc

index 763bcfb65840849e99c23317c525b2411f2cbb3a..8d79f28ce6c86e2fbefe02fbb10d0d0b460f30d2 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.134 1997/10/26 02:35:29 wessels Exp $
+ * $Id: client_side.cc,v 1.135 1997/10/28 20:42:50 wessels Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -219,6 +219,8 @@ icpHandleIMSReply(void *data, char *buf, ssize_t size)
     int unlink_request = 0;
     StoreEntry *oldentry;
     debug(33, 3) ("icpHandleIMSReply: FD %d '%s'\n", fd, entry->url);
+    put_free_4k_page(buf);
+    buf = NULL;
     /* unregister this handler */
     if (entry->store_status == STORE_ABORTED) {
        debug(33, 3) ("icpHandleIMSReply: ABORTED '%s'\n", entry->url);
index 649d1cc4aaf1fe5a80ba5d861a0348991ae62e7b..8d10d9f41cb69ca234fdfcdd230446551fa255ae 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: errorpage.cc,v 1.87 1997/10/26 02:35:30 wessels Exp $
+ * $Id: errorpage.cc,v 1.88 1997/10/28 20:42:50 wessels Exp $
  *
  * DEBUG: section 4     Error Generation
  * AUTHOR: Duane Wessels
@@ -92,6 +92,7 @@ errorStateFree(ErrorState * err)
     requestUnlink(err->request);
     safe_free(err->redirect_url);
     safe_free(err->url);
+    safe_free(err->host);
     cbdataFree(err);
 }
 
@@ -274,6 +275,7 @@ errorAppendEntry(StoreEntry * entry, ErrorState * err)
     storeAppend(entry, buf, len);
     if (mem)
        mem->reply->code = err->http_status;
+    errorStateFree(err);
 }
 
 /* If there is a callback, the callback is responsible to close
index 62003f41ffb5456d62809010089714f7b8278864..43a05ee4ada9085e59b17473c4ede23c740069be 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ipcache.cc,v 1.138 1997/10/27 22:48:56 wessels Exp $
+ * $Id: ipcache.cc,v 1.139 1997/10/28 20:42:53 wessels Exp $
  *
  * DEBUG: section 14    IP Cache
  * AUTHOR: Harvest Derived
@@ -1143,8 +1143,7 @@ ipcache_restart(void)
 {
     ipcache_entry *this;
     ipcache_entry *next;
-    if (ip_table == 0)
-       fatal_dump("ipcache_restart: ip_table == 0\n");
+    assert(ip_table != NULL);
     while (ipcacheDequeue());
     next = (ipcache_entry *) hash_first(ip_table);
     while ((this = next)) {
index d50d0ee754e607f1b919fc07ba17cd4046f9e669..2ea2fc3f210250d6fcd5209014f76df9341b9f02 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store.cc,v 1.321 1997/10/28 06:54:14 wessels Exp $
+ * $Id: store.cc,v 1.322 1997/10/28 20:42:54 wessels Exp $
  *
  * DEBUG: section 20    Storeage Manager
  * AUTHOR: Harvest Derived
@@ -757,6 +757,8 @@ storeUnregister(StoreEntry * e, void *data)
        commSetSelect(sc->swapin_fd, COMM_SELECT_READ, NULL, NULL, 0);
        file_close(sc->swapin_fd);
     }
+    if (sc->callback)
+       debug(20,1)("WARNING: store_client for %s has a callback\n", e->url);
     cbdataFree(sc);
     return 1;
 }
index b24d5e86a724038ef11b97ebad64927933c9e6d0..cc57d8133fb65e2a419f3594ff5c101299c2a77b 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: wais.cc,v 1.90 1997/10/26 02:35:41 wessels Exp $
+ * $Id: wais.cc,v 1.91 1997/10/28 20:42:55 wessels Exp $
  *
  * DEBUG: section 24    WAIS Relay
  * AUTHOR: Harvest Derived
@@ -148,7 +148,6 @@ waisTimeout(int fd, void *data)
     err->http_status = HTTP_GATEWAY_TIMEOUT;
     err->request = urlParse(METHOD_CONNECT, waisState->request);
     errorAppendEntry(entry, err);
-
     storeAbort(entry, 0);
     comm_close(fd);
 }