Skip to content

Commit 86be78b

Browse files
Add missing lock in freeAllocationsList method
Change-Id: I326fe830ad3c90bbe0f82bd8983bb6c2a8b36c1d Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
1 parent 271e588 commit 86be78b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

runtime/memory_manager/memory_manager.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ bool MemoryManager::cleanAllocationList(uint32_t waitTaskCount, uint32_t allocat
233233
}
234234

235235
void MemoryManager::freeAllocationsList(uint32_t waitTaskCount, AllocationsList &allocationsList) {
236+
std::lock_guard<decltype(mtx)> lock(mtx);
236237
GraphicsAllocation *curr = allocationsList.detachNodes();
237238

238239
IDList<GraphicsAllocation, false, true> allocationsLeft;

0 commit comments

Comments
 (0)