Skip to content

Commit 16b6488

Browse files
authored
DPL: take ownership of a string to prevent a crash on exit (#15578)
1 parent 28d11a8 commit 16b6488

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Framework/Core/src/ResourcePolicyHelpers.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ ResourcePolicy ResourcePolicyHelpers::rateLimitedSharedMemoryBoundTask(char cons
4444
{
4545
return ResourcePolicy{
4646
"ratelimited-shm-bound",
47-
[matcher = std::regex(s)](DeviceSpec const& spec) -> bool {
47+
[matcher = std::regex(std::string{s})](DeviceSpec const& spec) -> bool {
4848
return std::regex_match(spec.name, matcher);
4949
},
5050
[requestedSharedMemory, requestedTimeslices](ComputingQuotaOffer const& offer, ComputingQuotaOffer const& accumulated) -> OfferScore {

0 commit comments

Comments
 (0)