From 1d7867973f1f691e804234d33ef66636b6aeaf9c Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 5 Jun 2025 16:40:28 +0200 Subject: [PATCH] rec: Fix a leak reported by LSAN in the mtasker unit tests --- pdns/recursordist/mtasker_context.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pdns/recursordist/mtasker_context.cc b/pdns/recursordist/mtasker_context.cc index d2d9157a86..ed0459a0f7 100644 --- a/pdns/recursordist/mtasker_context.cc +++ b/pdns/recursordist/mtasker_context.cc @@ -165,7 +165,8 @@ extern "C" args = nullptr; try { - start(); + auto localstart = std::move(start); + localstart(); } catch (...) { ctx->exception = std::current_exception(); -- 2.47.2