mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Merge remote-tracking branch 'origin/topic/robin/file-analysis-fixes'
* origin/topic/robin/file-analysis-fixes: Adding test with command line that used to trigger a crash. Cleaning up a couple of comments. Fix delay in disabling file analyzers. Fix file analyzer memory management. The merge changes around functionality a bit again - instead of having a list of done analyzers, analyzers are simply set to skipping when they are removed, and cleaned up later on destruction of the AnalyzerSet. BIT-1782 #merged
This commit is contained in:
commit
9db27a6d60
7 changed files with 72 additions and 12 deletions
|
@ -129,8 +129,11 @@ bool AnalyzerSet::Remove(file_analysis::Tag tag, HashKey* key)
|
|||
file->GetID().c_str(),
|
||||
file_mgr->GetComponentName(tag).c_str());
|
||||
|
||||
a->Done();
|
||||
delete a;
|
||||
|
||||
// We don't delete the analyzer object right here because the remove
|
||||
// operation may execute at a time when it can still be accessed.
|
||||
// Instead we let disable it; it will be deleted together with the AnalyzerSet.
|
||||
a->SetSkip(true);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue