mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
Fix memory leak in Reporter::get_weird_sampling_whitelist() BIF
This commit is contained in:
parent
bf05add542
commit
3b6a2a5f4e
1 changed files with 2 additions and 1 deletions
|
@ -156,7 +156,8 @@ function Reporter::get_weird_sampling_whitelist%(%): string_set
|
|||
TableVal* set = new TableVal(string_set);
|
||||
for ( auto el : reporter->GetWeirdSamplingWhitelist() )
|
||||
{
|
||||
set->Assign(new StringVal(el), nullptr);
|
||||
auto idx = make_intrusive<StringVal>(el);
|
||||
set->Assign(idx.get(), nullptr);
|
||||
}
|
||||
return set;
|
||||
%}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue