Skip to content

Commit 2f9bcf5

Browse files
committed
Lock the mutex
1 parent 3c84edb commit 2f9bcf5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/loader/layers/sanitizer/asan_interceptor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ SanitizerInterceptor::~SanitizerInterceptor() {
154154
DestroyShadowMemoryOnCPU();
155155
DestroyShadowMemoryOnPVC();
156156

157+
std::shared_lock<ur_shared_mutex> Guard(m_AllocationMapMutex);
157158
bool HasLeak = false;
158159
for (const auto &[_, AI] : m_AllocationMap) {
159160
if (!AI->IsReleased) {

0 commit comments

Comments
 (0)