From 5d8c32c63afce1a666ff03cbad64b5c6173b47e9 Mon Sep 17 00:00:00 2001 From: Anton Alkin Date: Mon, 6 Jul 2026 13:38:22 +0200 Subject: [PATCH] DPL: take ownership of a string to prevent a crash on exit --- Framework/Core/src/ResourcePolicyHelpers.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Framework/Core/src/ResourcePolicyHelpers.cxx b/Framework/Core/src/ResourcePolicyHelpers.cxx index 650beec3ac599..e859b167da7b5 100644 --- a/Framework/Core/src/ResourcePolicyHelpers.cxx +++ b/Framework/Core/src/ResourcePolicyHelpers.cxx @@ -44,7 +44,7 @@ ResourcePolicy ResourcePolicyHelpers::rateLimitedSharedMemoryBoundTask(char cons { return ResourcePolicy{ "ratelimited-shm-bound", - [matcher = std::regex(s)](DeviceSpec const& spec) -> bool { + [matcher = std::regex(std::string{s})](DeviceSpec const& spec) -> bool { return std::regex_match(spec.name, matcher); }, [requestedSharedMemory, requestedTimeslices](ComputingQuotaOffer const& offer, ComputingQuotaOffer const& accumulated) -> OfferScore {