mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Fixing more (small) memory leaks.
This commit is contained in:
parent
df4a22a27d
commit
0ec1fa6a53
2 changed files with 5 additions and 1 deletions
|
@ -221,7 +221,9 @@ bool Expr::DoUnserialize(UnserialInfo* info)
|
|||
|
||||
tag = BroExprTag(c);
|
||||
|
||||
UNSERIALIZE_OPTIONAL(type, BroType::Unserialize(info));
|
||||
BroType* t = 0;
|
||||
UNSERIALIZE_OPTIONAL(t, BroType::Unserialize(info));
|
||||
SetType(t);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -231,6 +231,8 @@ bool BroObj::DoUnserialize(UnserialInfo* info)
|
|||
{
|
||||
DO_UNSERIALIZE(SerialObj);
|
||||
|
||||
delete location;
|
||||
|
||||
UNSERIALIZE_OPTIONAL(location, Location::Unserialize(info));
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue