From eec3860c38c4bd7d5abb73e3e48b2da83f39f00f Mon Sep 17 00:00:00 2001 From: bneradt Date: Fri, 31 Jul 2026 11:20:10 -0500 Subject: [PATCH] Release logging thread continuations Dedicated logging continuations remain allocated after their worker loops return during shutdown. Once shutdown reliably completes, LeakSanitizer can report the flush continuation as an 80-byte leak. Release both continuations after their loops finish. This matches the ownership model used by other dedicated event threads. --- src/proxy/logging/Log.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/proxy/logging/Log.cc b/src/proxy/logging/Log.cc index 96b7a56798e..2bcaba9815b 100644 --- a/src/proxy/logging/Log.cc +++ b/src/proxy/logging/Log.cc @@ -277,6 +277,7 @@ struct LoggingPreprocContinuation : public Continuation { mainEvent(int /* event ATS_UNUSED */, void * /* data ATS_UNUSED */) { Log::preproc_thread_main((void *)&m_idx); + delete this; return 0; } @@ -293,6 +294,7 @@ struct LoggingFlushContinuation : public Continuation { mainEvent(int /* event ATS_UNUSED */, void * /* data ATS_UNUSED */) { Log::flush_thread_main((void *)&m_idx); + delete this; return 0; }