]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
need to release objects on swapout errors when we close the swapout FD
authorwessels <>
Tue, 13 Oct 1998 10:46:30 +0000 (10:46 +0000)
committerwessels <>
Tue, 13 Oct 1998 10:46:30 +0000 (10:46 +0000)
src/store_swapout.cc

index 7842f986ccb09fecc9b98dc17ad3d93a54354e98..40c384355e8fdb5851494fce0dc44c82a79eb5ce 100644 (file)
@@ -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;
     }