From: Remi Gacogne Date: Thu, 5 Jun 2025 14:40:28 +0000 (+0200) Subject: rec: Fix a leak reported by LSAN in the mtasker unit tests X-Git-Tag: dnsdist-2.0.0-beta1~38^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1d7867973f1f691e804234d33ef66636b6aeaf9c;p=thirdparty%2Fpdns.git rec: Fix a leak reported by LSAN in the mtasker unit tests --- 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();