Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Fixed a segfault issue on macOS. Deleting item invalidated the iterat…
Browse files Browse the repository at this point in the history
…or. (#3767)
  • Loading branch information
nicknezis authored Jan 24, 2022
1 parent b970b65 commit 638cff1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions heron/stmgr/tests/cpp/server/stmgr_unittest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -682,9 +682,7 @@ void TearCommonResources(CommonResources& common) {

common.ss_list_.clear();

for (auto itr = common.instanceid_instance_.begin();
itr != common.instanceid_instance_.end(); ++itr)
common.instanceid_instance_.erase(itr->first);
common.instanceid_instance_.clear();

// Clean up the local filesystem state
FileUtils::removeRecursive(common.dpath_, true);
Expand Down

0 comments on commit 638cff1

Please sign in to comment.