]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: Fix a leak reported by LSAN in the mtasker unit tests 15634/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 5 Jun 2025 14:40:28 +0000 (16:40 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 5 Jun 2025 14:40:28 +0000 (16:40 +0200)
pdns/recursordist/mtasker_context.cc

index d2d9157a8667c5e11ddb5aad7c1e80d0c411120f..ed0459a0f770a88ab87fe8aa4709c11cfb41ec2f 100644 (file)
@@ -165,7 +165,8 @@ extern "C"
     args = nullptr;
 
     try {
-      start();
+      auto localstart = std::move(start);
+      localstart();
     }
     catch (...) {
       ctx->exception = std::current_exception();