--------------------- PatchSet 11219 Date: 2007/02/02 18:33:57 Author: hno Branch: HEAD Tag: (none) Log: Release objects on swapin failure Members: src/store_swapin.c:1.33->1.34 Index: squid/src/store_swapin.c =================================================================== RCS file: /cvsroot/squid/squid/src/store_swapin.c,v retrieving revision 1.33 retrieving revision 1.34 diff -u -r1.33 -r1.34 --- squid/src/store_swapin.c 6 Jun 2006 16:37:24 -0000 1.33 +++ squid/src/store_swapin.c 2 Feb 2007 18:33:57 -0000 1.34 @@ -1,6 +1,6 @@ /* - * $Id: store_swapin.c,v 1.33 2006/06/06 16:37:24 hno Exp $ + * $Id: store_swapin.c,v 1.34 2007/02/02 18:33:57 hno Exp $ * * DEBUG: section 20 Storage Manager Swapin Functions * AUTHOR: Duane Wessels @@ -75,6 +75,8 @@ sio, errflag); cbdataUnlock(sio); sc->swapin_sio = NULL; + if (errflag < 0) + storeRelease(sc->entry); if ((callback = sc->callback)) { void *cbdata = sc->callback_data; assert(errflag <= 0);