Re: [Fwd: Pool for Request structur]

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 23 Dec 1998 22:50:02 +0100

Rodney Holm wrote:

> I am not sure if this will happen in squid 2.1, as I do not have
> one running.

Squid 2.X does NOT behave in this way, that is for sure.

I ran a quick test on 1.1.22 and it does indeed leak request structures
on each proxy_auth request without a valid password.

The fix is probably like this:

        icpSendERROR(fd, icpState->log_type, wbuf, icpState,
icpState->http_code);
        /* Fix for leaking request structures */
        requestUnlink(icpState->aclChecklist->request);
        icpState->aclHandler = NULL;
        /* End fix */
        safe_free(icpState->aclChecklist);
        return;
    }
#endif /* USE_PROXY_AUTH */

--
Henrik Nordstrom
Spare time Squid hacker
Received on Wed Dec 23 1998 - 14:36:11 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:43:43 MST