mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58:20 +00:00
FileAnalysis: fix access of invalidated std::map iterator.
This commit is contained in:
parent
497496ec83
commit
621fe51c82
2 changed files with 4 additions and 3 deletions
|
@ -303,8 +303,8 @@ bool Manager::RemoveFile(const string& unique)
|
|||
reporter->Error("No mapping for fileID %s", id.c_str());
|
||||
|
||||
ignored.erase(unique);
|
||||
str_map.erase(unique);
|
||||
delete it->second;
|
||||
str_map.erase(unique);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue