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

Change-Id: I837cb4868de2acd3e71ca9a745a62ed0bb2d1400
Cette révision appartient à :
Sourabh Betigeri
2022-06-16 15:40:01 -07:00
révisé par Sourabh Betigeri
Parent 7b38ee1574
révision 5ad38a32bf
+2 -2
Voir le fichier
@@ -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);
}
}