mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
make benchmark reader hartbeat inverval aware
fix small memleak on tablereader destruction make timespread better configureable
This commit is contained in:
parent
b47620e501
commit
1170a87769
6 changed files with 34 additions and 12 deletions
|
@ -133,11 +133,15 @@ Manager::TableFilter::~TableFilter() {
|
|||
if ( rtype ) // can be 0 for sets
|
||||
Unref(rtype);
|
||||
|
||||
if ( currDict != 0 )
|
||||
if ( currDict != 0 ) {
|
||||
currDict->Clear();
|
||||
delete currDict;
|
||||
}
|
||||
|
||||
if ( lastDict != 0 )
|
||||
if ( lastDict != 0 ) {
|
||||
lastDict->Clear();;
|
||||
delete lastDict;
|
||||
}
|
||||
}
|
||||
|
||||
struct ReaderDefinition {
|
||||
|
@ -898,6 +902,7 @@ int Manager::SendEntryTable(Filter* i, const Value* const *vals) {
|
|||
}
|
||||
|
||||
//i->tab->Assign(idxval, valval);
|
||||
assert(idxval);
|
||||
HashKey* k = filter->tab->ComputeHash(idxval);
|
||||
if ( !k ) {
|
||||
reporter->InternalError("could not hash");
|
||||
|
@ -1067,8 +1072,6 @@ void Manager::Put(ReaderFrontend* reader, Value* *vals) {
|
|||
}
|
||||
|
||||
int Manager::SendEventFilterEvent(Filter* i, EnumVal* type, const Value* const *vals) {
|
||||
bool updated = false;
|
||||
|
||||
assert(i);
|
||||
|
||||
assert(i->filter_type == EVENT_FILTER);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue