mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 20:48:21 +00:00
Fix ref counting bug in dummy ID creation code for script docs.
This commit is contained in:
parent
a9eb4c15a0
commit
58692ef9e0
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ static ID* create_dummy_id (ID* id, BroType* type)
|
|||
ID* fake_id = new ID(copy_string(id->Name()), (IDScope) id->Scope(),
|
||||
is_export);
|
||||
|
||||
fake_id->SetType(type);
|
||||
fake_id->SetType(type->Ref());
|
||||
|
||||
if ( id->AsType() )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue