]> git.ipfire.org Git - thirdparty/squid.git/commit
Prevent memory leaks when Adaptation::AccessCheck callback ends the job.
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 28 Nov 2010 15:29:51 +0000 (08:29 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Sun, 28 Nov 2010 15:29:51 +0000 (08:29 -0700)
commit7866ecc97e903181bee4c50946dcb235cfd0b985
tree648054552c89e3b7dd42f0d3d1e51ac28fb5503b
parentf31be4b0fa6d5108886eb5f9b3aeb3ea9dd40146
Prevent memory leaks when Adaptation::AccessCheck callback ends the job.

The AccessCheckCallbackWrapper is used in nonBlockingCheck() and is called
from the ACL code, using legacy function-based API.  If the job ends during
the callback processing, there are no AsyncCall wrappers to destroy the job
object. We now convert legacy to async call to enable proper wrapping and job
destruction.

These kind of job leaks are invisible to valgrind, but that is another bug.
src/adaptation/AccessCheck.cc