mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
fix largest leak in manager.
This commit is contained in:
parent
1170a87769
commit
7a71a74994
1 changed files with 3 additions and 2 deletions
|
@ -1663,10 +1663,11 @@ HashKey* Manager::HashValues(const int num_elements, const Value* const *vals) {
|
|||
position += CopyValue(data, position, val);
|
||||
}
|
||||
|
||||
hash_t key = HashKey::HashBytes(data, length);
|
||||
HashKey *key = new HashKey(data, length);
|
||||
delete data;
|
||||
|
||||
assert(position == length);
|
||||
return new HashKey(data, length, key, true);
|
||||
return key;
|
||||
}
|
||||
|
||||
// convert threading value to Bro value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue