]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Moved ctx_exit() call in destroy_MemObject. Must ctx_exit() before we destroy
authorrousskov <>
Sun, 22 Feb 1998 01:56:48 +0000 (01:56 +0000)
committerrousskov <>
Sun, 22 Feb 1998 01:56:48 +0000 (01:56 +0000)
the context (mem->url).

src/store.cc

index 644f31db4cd59193d9c56978eedcc1b998709c22..1741c34793dd51f000e779f0f74faecff75fb969 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store.cc,v 1.385 1998/02/21 18:46:39 rousskov Exp $
+ * $Id: store.cc,v 1.386 1998/02/21 18:56:48 rousskov Exp $
  *
  * DEBUG: section 20    Storeage Manager
  * AUTHOR: Harvest Derived
@@ -212,12 +212,12 @@ destroy_MemObject(StoreEntry * e)
 #endif
     assert(mem->clients == NULL);
     httpReplyDestroy(mem->reply);
-    safe_free(mem->url);
-    safe_free(mem->log_url);
     requestUnlink(mem->request);
     mem->request = NULL;
+    ctx_exit(ctx); /* must exit before we free mem->url */
+    safe_free(mem->url);
+    safe_free(mem->log_url);
     memFree(MEM_MEMOBJECT, mem);
-    ctx_exit(ctx);
 }
 
 static void