Skip to content

Commit

Permalink
Revert "Fix #843: crasher in test_load()"
Browse files Browse the repository at this point in the history
This reverts commit 9708040.
  • Loading branch information
hluaces committed Apr 28, 2024
1 parent 2a98e82 commit 062c294
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/vm/internal/otable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,9 @@ bool ObjectTable::remove(Key const& key) {
objects_.erase(it1);
// guaranteed to exist if object exists
auto it2 = children_.find(basename(key));
if (it2 == children_.end()) return false;
auto it3 = std::find_if(it2->second.begin(), it2->second.end(),
[&key](Value v) -> bool { return v->obname == key; });
// guaranteed to be in list if basename(key) exists in children_
if (it3 == it2->second.end()) return false;
it2->second.erase(it3);
if (it2->second.size() == 0) {
children_.erase(it2);
Expand Down
3 changes: 0 additions & 3 deletions testsuite/single/tests/crasher/843.c

This file was deleted.

0 comments on commit 062c294

Please sign in to comment.