--------------------- PatchSet 1181 Date: 2001/01/07 23:22:47 Author: adri Branch: modio Tag: (none) Log: Actually free the data correctly once its been passed off to the network. Members: src/reply_network.c:1.1.2.1->1.1.2.2 Index: squid/src/reply_network.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/Attic/reply_network.c,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -r1.1.2.1 -r1.1.2.2 --- squid/src/reply_network.c 4 Jan 2001 16:29:41 -0000 1.1.2.1 +++ squid/src/reply_network.c 7 Jan 2001 23:22:47 -0000 1.1.2.2 @@ -216,9 +216,10 @@ debug(20, 3) ("reply_network_clientcopy3: Copying from memory\n"); sz = stmemCopy(&state->data_hdr, sc->copy_offset, sc->copy_buf, sc->copy_size); + state->inmem_lo = sc->copy_offset + sz; + assert(state->inmem_lo <= state->inmem_hi); + stmemFreeDataUpto(&state->data_hdr, state->inmem_lo - 1); reply_network_clientcallback(sc, sz); - assert((state->inmem_lo + sz - 1) > 0); /* XXX just being paranoid for now! */ - stmemFreeDataUpto(&state->data_hdr, state->inmem_lo + sz - 1); goto finish; } /* We shouldn't ever get here! */