From: wessels <> Date: Fri, 24 Oct 1997 09:42:29 +0000 (+0000) Subject: in storePurgeMem, if we didn't swap it out then release it X-Git-Tag: SQUID_3_0_PRE1~4708 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8272aded30a2d271c7a0d19eccb2fbe54254ba32;p=thirdparty%2Fsquid.git in storePurgeMem, if we didn't swap it out then release it --- diff --git a/src/store.cc b/src/store.cc index 8130cb7012..fd6629a100 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1,6 +1,6 @@ /* - * $Id: store.cc,v 1.307 1997/10/24 02:52:19 wessels Exp $ + * $Id: store.cc,v 1.308 1997/10/24 03:42:29 wessels Exp $ * * DEBUG: section 20 Storeage Manager * AUTHOR: Harvest Derived @@ -468,6 +468,11 @@ storePurgeMem(StoreEntry * e) storeSetMemStatus(e, NOT_IN_MEMORY); destroy_MemObject(e->mem_obj); e->mem_obj = NULL; + if (e->swap_status != SWAPOUT_DONE) { + debug(0,0)("storePurgeMem: swap_status = %s, releasing\n", + swapStatusStr[e->swap_status]); + storeRelease(e); + } } void