From a2cabde21b44e2616317cab2a15c27d1458eab96 Mon Sep 17 00:00:00 2001 From: sramzy1 Date: Sun, 22 Feb 2026 14:52:02 +0200 Subject: [PATCH] remove unnecessary lock in SharedMemoryResource::do_deallocate --- score/memory/shared/shared_memory_resource.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/score/memory/shared/shared_memory_resource.cpp b/score/memory/shared/shared_memory_resource.cpp index 41aadaee..6c956f54 100644 --- a/score/memory/shared/shared_memory_resource.cpp +++ b/score/memory/shared/shared_memory_resource.cpp @@ -836,7 +836,6 @@ auto SharedMemoryResource::IsShmInTypedMemory() const noexcept -> bool // coverity[autosar_cpp14_a0_1_3_violation] false-positive: part of the public API auto SharedMemoryResource::do_deallocate(void*, std::size_t, std::size_t) -> void { - std::lock_guard lock(this->control_block_->mutex); /** * For the proof of concept we agreed to use a monotonic allocation algorithm. * Thus, no deallocation will be performed.