mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58:20 +00:00
GH-188: fix crash when shutting down with pending reporter errors
This fixes some use-after-free issues in the shutdown order of various systems: I/O, plugin, logging, and reporter systems may interact during shutdown if there's errors emitted (or maybe just still pending) during the shutdown. Fixes GH-188
This commit is contained in:
parent
766b1d9520
commit
38cb3dbf2e
5 changed files with 17 additions and 4 deletions
|
@ -377,11 +377,11 @@ void terminate_bro()
|
|||
delete event_registry;
|
||||
delete analyzer_mgr;
|
||||
delete file_mgr;
|
||||
delete log_mgr;
|
||||
delete plugin_mgr;
|
||||
delete reporter;
|
||||
// broker_mgr is deleted via iosource_mgr
|
||||
delete iosource_mgr;
|
||||
delete log_mgr;
|
||||
delete reporter;
|
||||
delete plugin_mgr;
|
||||
delete port_mgr;
|
||||
|
||||
reporter = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue