]> git.ipfire.org Git - thirdparty/squid.git/commit
NoNewGlobals for iocb_table (#1998)
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Thu, 20 Feb 2025 13:35:33 +0000 (13:35 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Fri, 21 Feb 2025 18:59:21 +0000 (18:59 +0000)
commit28a2ea0dedcbb43566c18e1d71b0f5bbff2c8640
tree9ec773fa7275271815e3b29efe06bfa60a718a19
parente5a66fc26dae3806cdd12ee767e85b1d6837384d
NoNewGlobals for iocb_table (#1998)

During shutdown, iocb_table global was deleted, but the corresponding
cleanup code ignored some IoCallback members, triggering misleading
Ipc::UdsSender memory leak reports from Valgrind.

This change uses NoNewGlobals design to address the above problem, but
this code needs a lot more refactoring to address other old problems
associated with Comm initialization.
src/comm.cc
src/comm/IoCallback.cc
src/comm/IoCallback.h
src/comm/Write.cc
src/tests/stub_libcomm.cc