Fixing more (small) memory leaks.

This commit is contained in:
Robin Sommer 2011-10-08 18:22:36 -07:00
parent df4a22a27d
commit 0ec1fa6a53
2 changed files with 5 additions and 1 deletions

View file

@ -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;
}

View file

@ -231,6 +231,8 @@ bool BroObj::DoUnserialize(UnserialInfo* info)
{
DO_UNSERIALIZE(SerialObj);
delete location;
UNSERIALIZE_OPTIONAL(location, Location::Unserialize(info));
return true;
}