Skip to content

Commit

Permalink
Fix segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
Qup42 committed Jun 21, 2024
1 parent f70ce8e commit 2bceb94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index/LocatedTriples.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ void LocatedTriplesPerBlock::erase(size_t blockIndex,
auto blockIter = map_.find(blockIndex);
AD_CONTRACT_CHECK(blockIter != map_.end(), "Block ", blockIndex,
" is not contained.");
auto block = blockIter->second;
auto& block = blockIter->second;
block.erase(iter);
numTriples_--;
if (block.empty()) {
Expand Down

0 comments on commit 2bceb94

Please sign in to comment.