--------------------- PatchSet 5981 Date: 2003/10/17 20:51:26 Author: dwsquid Branch: icap-2_5 Tag: (none) Log: Memory leak casued by forgetting to unlock httpState->icap_writer. Members: src/http.c:1.17.6.3.6.12->1.17.6.3.6.13 Index: squid/src/http.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/http.c,v retrieving revision 1.17.6.3.6.12 retrieving revision 1.17.6.3.6.13 diff -u -r1.17.6.3.6.12 -r1.17.6.3.6.13 --- squid/src/http.c 15 Oct 2003 21:19:23 -0000 1.17.6.3.6.12 +++ squid/src/http.c 17 Oct 2003 20:51:26 -0000 1.17.6.3.6.13 @@ -1,6 +1,6 @@ /* - * $Id: http.c,v 1.17.6.3.6.12 2003/10/15 21:19:23 dwsquid Exp $ + * $Id: http.c,v 1.17.6.3.6.13 2003/10/17 20:51:26 dwsquid Exp $ * * DEBUG: section 11 Hypertext Transfer Protocol (HTTP) * AUTHOR: Harvest Derived @@ -74,6 +74,9 @@ requestUnlink(httpState->orig_request); httpState->request = NULL; httpState->orig_request = NULL; +#if HS_FEAT_ICAP + cbdataUnlock(httpState->icap_writer); +#endif cbdataFree(httpState); }