mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
fix another memory lead (when updating tables).
Adjust twotables testcase - now it is faster. Shorten the output -- because of threading, the results did not always come out in the same order (it depends on which thread manages to sneak in the results into the queue earlier).
This commit is contained in:
parent
b37f9e38f6
commit
f4864c69af
3 changed files with 41 additions and 214 deletions
|
@ -1123,6 +1123,7 @@ void Manager::EndCurrentSend(ReaderFrontend* reader)
|
|||
val = stream->tab->Lookup(idx);
|
||||
assert(val != 0);
|
||||
predidx = ListValToRecordVal(idx, stream->itype, &startpos);
|
||||
Unref(idx);
|
||||
ev = new EnumVal(BifEnum::Input::EVENT_REMOVED, BifType::Enum::Input::Event);
|
||||
}
|
||||
|
||||
|
@ -1594,7 +1595,7 @@ RecordVal* Manager::ListValToRecordVal(ListVal* list, RecordType *request_type,
|
|||
(*position)++;
|
||||
}
|
||||
|
||||
rec->Assign(i, fieldVal);
|
||||
rec->Assign(i, fieldVal->Ref());
|
||||
}
|
||||
|
||||
return rec;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue