SWDEV-342067 - Fixes a minor coding error to loop through all the entries in the map

Change-Id: I837cb4868de2acd3e71ca9a745a62ed0bb2d1400
Этот коммит содержится в:
Sourabh Betigeri authored and Sourabh Betigeri committed 2022-06-20 19:20:38 -04:00
1 родитель 7b38ee1574
Коммит 5ad38a32bf
1 file changed
+2 -2
+2 -2
Просмотреть файл
@@ -122,8 +122,8 @@ bool Heap::ReleaseAllMemory(hip::Stream* stream) {
// ================================================================================================
void Heap::RemoveStream(hip::Stream* stream) {
for (auto it = allocations_.begin(); it != allocations_.end();) {
it->second.safe_streams_.erase(stream);
for (auto it : allocations_) {
it.second.safe_streams_.erase(stream);
}
}