mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Fixing memory leak in CompHash.
Amazing what code still has memory leaks ... Closes #987.
This commit is contained in:
parent
7f0e25bdef
commit
95cf662ff5
1 changed files with 3 additions and 0 deletions
|
@ -830,7 +830,10 @@ const char* CompositeHash::RecoverOneVal(const HashKey* k, const char* kp0,
|
|||
}
|
||||
|
||||
for ( int i = 0; i < n; ++i )
|
||||
{
|
||||
tv->Assign(keys[i], t->IsSet() ? 0 : values[i]);
|
||||
Unref(keys[i]);
|
||||
}
|
||||
|
||||
pval = tv;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue