From: wessels <> Date: Tue, 13 Oct 1998 10:46:30 +0000 (+0000) Subject: need to release objects on swapout errors when we close the swapout FD X-Git-Tag: SQUID_3_0_PRE1~2590 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbbde8ca5dc8c60199283347b858650c4af37bd4;p=thirdparty%2Fsquid.git need to release objects on swapout errors when we close the swapout FD --- diff --git a/src/store_swapout.cc b/src/store_swapout.cc index 7842f986cc..40c384355e 100644 --- a/src/store_swapout.cc +++ b/src/store_swapout.cc @@ -1,6 +1,6 @@ /* - * $Id: store_swapout.cc,v 1.35 1998/09/29 16:33:54 wessels Exp $ + * $Id: store_swapout.cc,v 1.36 1998/10/13 04:46:30 wessels Exp $ * * DEBUG: section 20 Storage Manager Swapout Functions * AUTHOR: Duane Wessels @@ -193,6 +193,7 @@ storeCheckSwapOut(StoreEntry * e) e->swap_file_number = -1; } e->swap_status = SWAPOUT_NONE; + storeReleaseRequest(e); storeSwapOutFileClose(e); } return; @@ -235,6 +236,7 @@ storeCheckSwapOut(StoreEntry * e) e->swap_file_number = -1; e->swap_status = SWAPOUT_NONE; memFree(MEM_DISK_BUF, swap_buf); + storeReleaseRequest(e); storeSwapOutFileClose(e); return; }