From ccc140fbf7a659ff54a42e6dd0d9c36ff05803cb Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sun, 9 Aug 2026 19:53:20 -0400 Subject: [PATCH] vorlocalizer: fix leaked report message Create and populate the VOR service report message as before, but delete it when the feature message queue is not available. The message is normally transferred to `m_msgQueueToFeature` for ownership, but when the queue is null there is no owner and the allocated message leaked. Coverity reported the leak as CID 652338 (`RESOURCE_LEAK`) while analyzing `VorLocalizerWorker::rrNextTurn()`. Review of the surrounding message queue usage confirmed that queued messages are owned by the queue, making the missing-queue path the unhandled ownership case. Signed-off-by: Robin Getz --- plugins/feature/vorlocalizer/vorlocalizerworker.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/feature/vorlocalizer/vorlocalizerworker.cpp b/plugins/feature/vorlocalizer/vorlocalizerworker.cpp index e12cf071b..49d2219fc 100644 --- a/plugins/feature/vorlocalizer/vorlocalizerworker.cpp +++ b/plugins/feature/vorlocalizer/vorlocalizerworker.cpp @@ -752,5 +752,7 @@ void VorLocalizerWorker::rrNextTurn() if (m_msgQueueToFeature) { m_msgQueueToFeature->push(msg); + } else { + delete msg; } }