mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28:20 +00:00
EventTraceMgr: Move fclose() to destructor
Coverity complains about a missing fclose() in a non-existing destructor. Also sprinkle in a strerror() call for fopen() to provide a bit of a hint what might have gone wrong.
This commit is contained in:
parent
bf30cf7997
commit
1465e390a2
2 changed files with 13 additions and 3 deletions
|
@ -441,6 +441,8 @@ class EventTraceMgr {
|
|||
public:
|
||||
EventTraceMgr(const std::string& trace_file);
|
||||
|
||||
~EventTraceMgr();
|
||||
|
||||
// Generates the trace upon exit.
|
||||
void Generate();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue