fix largest leak in manager.

This commit is contained in:
Bernhard Amann 2012-03-28 16:31:11 -07:00
parent 1170a87769
commit 7a71a74994

View file

@ -1663,10 +1663,11 @@ HashKey* Manager::HashValues(const int num_elements, const Value* const *vals) {
position += CopyValue(data, position, val); position += CopyValue(data, position, val);
} }
hash_t key = HashKey::HashBytes(data, length); HashKey *key = new HashKey(data, length);
delete data;
assert(position == length); assert(position == length);
return new HashKey(data, length, key, true); return key;
} }
// convert threading value to Bro value // convert threading value to Bro value