mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Type: RecordType::FieldDefault() returns IntrusivePtr
Fixes memory leak in EventHandler::NewEvent().
This commit is contained in:
parent
d2961c72e1
commit
d180ab0dd2
4 changed files with 6 additions and 9 deletions
|
@ -2618,7 +2618,7 @@ Val* RecordVal::LookupWithDefault(int field) const
|
|||
if ( val )
|
||||
return val->Ref();
|
||||
|
||||
return Type()->AsRecordType()->FieldDefault(field);
|
||||
return Type()->AsRecordType()->FieldDefault(field).release();
|
||||
}
|
||||
|
||||
void RecordVal::ResizeParseTimeRecords()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue