--------------------- PatchSet 2411 Date: 2001/05/30 21:36:30 Author: hno Branch: etag Tag: (none) Log: Fix for a memory leak while updating ETag/Variant index Members: src/store.c:1.12.14.8->1.12.14.9 Index: squid/src/store.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/store.c,v retrieving revision 1.12.14.8 retrieving revision 1.12.14.9 diff -u -r1.12.14.8 -r1.12.14.9 --- squid/src/store.c 29 May 2001 15:04:39 -0000 1.12.14.8 +++ squid/src/store.c 30 May 2001 21:36:30 -0000 1.12.14.9 @@ -1,6 +1,6 @@ /* - * $Id: store.c,v 1.12.14.8 2001/05/29 15:04:39 hno Exp $ + * $Id: store.c,v 1.12.14.9 2001/05/30 21:36:30 hno Exp $ * * DEBUG: section 20 Storage Manager * AUTHOR: Harvest Derived @@ -588,7 +588,7 @@ storeSetPublicKey(state->e); httpReplySwapOut(state->e->mem_obj->reply, state->e); if (state->oe) { - /* XXX Here we need to tack on the old etag/vary information, and we should + /* Here we need to tack on the old etag/vary information, and we should * merge, clean up etc * * Suggestion: @@ -673,6 +673,8 @@ storeUnregister(state->sc, state->e, state); state->sc = NULL; } + if (state->buf) + memFree(state->buf, MEM_4K_BUF); cbdataFree(state); debug(11, 0) ("storeLocateVary: DONE\n"); }