Fix iterator increment position (caused SIGSEGV)

This commit is contained in:
Andrea Cavalli 2020-05-25 15:50:21 +02:00
parent 62d8cd7c85
commit c047b969be

View File

@ -3790,8 +3790,8 @@ void FileManager::memory_cleanup() {
if (file_nodes_[it->second.node_id_].empty) { if (file_nodes_[it->second.node_id_].empty) {
destroy_query(it->first); destroy_query(it->first);
context_->destroy_file_source({it->first, 0}); context_->destroy_file_source({it->first, 0});
file_id_info_.erase(it++);
file_nodes_.erase(it->second.node_id_); file_nodes_.erase(it->second.node_id_);
file_id_info_.erase(it++);
} else { } else {
++it; ++it;
} }