From: rousskov <> Date: Sun, 22 Feb 1998 01:56:48 +0000 (+0000) Subject: Moved ctx_exit() call in destroy_MemObject. Must ctx_exit() before we destroy X-Git-Tag: SQUID_3_0_PRE1~4039 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4895983210326eb5a4749a9422c8f626393cd3b3;p=thirdparty%2Fsquid.git Moved ctx_exit() call in destroy_MemObject. Must ctx_exit() before we destroy the context (mem->url). --- diff --git a/src/store.cc b/src/store.cc index 644f31db4c..1741c34793 100644 --- a/src/store.cc +++ b/src/store.cc @@ -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