mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Fix mem leak when merging incompatible types.
Though this would typically be caused by a scripting error that should be fixed and Bro would exit anyway if encountered at parse time.
This commit is contained in:
parent
75d469532c
commit
f823b92e5e
1 changed files with 1 additions and 0 deletions
|
@ -2003,6 +2003,7 @@ BroType* merge_types(const BroType* t1, const BroType* t2)
|
|||
if ( ! y1 || ! y2 )
|
||||
{
|
||||
t1->Error("incompatible types", t2);
|
||||
Unref(tl3);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue