Skip to content

Commit

Permalink
#2209: location: properly erase from map when destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Apr 29, 2024
1 parent 9542a42 commit 6aaccdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vt/topos/location/manager.impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ LocationManager::makeCollectionLM(VirtualProxyType proxy) {

template <typename IndexT>
void LocationManager::destroyCollectionLM(VirtualProxyType proxy) {
if (auto it = collection_lms.find(proxy); it != collection_lms.end()) {
objgroup::proxy::Proxy<IndexedElmType<IndexT>> lm_proxy(it->second);
if (auto elm = collection_lms.extract(proxy); elm) {
objgroup::proxy::Proxy<IndexedElmType<IndexT>> lm_proxy(elm.mapped());
lm_proxy.destroyCollective();
} else {
vtAbort("Could not find location manager for proxy");
Expand Down

0 comments on commit 6aaccdd

Please sign in to comment.