mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
Fix reference counting for lookup_ID() usages.
That function refs the ID before returning it, but callers were never assuming responsibility for that reference.
This commit is contained in:
parent
5b9d190f2c
commit
8b7d5a68b2
7 changed files with 42 additions and 8 deletions
|
@ -475,6 +475,7 @@ BuiltinFunc::BuiltinFunc(built_in_func arg_func, const char* arg_name,
|
|||
|
||||
type = id->Type()->Ref();
|
||||
id->SetVal(new Val(this));
|
||||
Unref(id);
|
||||
}
|
||||
|
||||
BuiltinFunc::~BuiltinFunc()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue