ESI was deleting its reference to child HTTP requests instead of unlocking
them. Even if they were in use elsewhere.
TODO: A better approach may be to cancel the dependent child request
entirely and close its resources down in a chain-reaction.
void
ESIContext::freeResources ()
{
- debugs(86, 5, "ESIContext::freeResources: Freeing for this=" << this);
+ debugs(86, 5, HERE << "Freeing for this=" << this);
- if (rep) {
- delete rep;
- rep = NULL;
- }
+ HTTPMSGUNLOCK(rep);
finishChildren ();