zeekygen/IdentifierInfo: fix memory leak in operator=()

This commit is contained in:
Max Kellermann 2020-02-24 12:26:37 +01:00
parent b84693e546
commit c074122f13

View file

@ -165,6 +165,8 @@ IdentifierInfo::Redefinition::operator=(const IdentifierInfo::Redefinition& othe
if ( &other == this )
return *this;
Unref(init_expr);
from_script = other.from_script;
ic = other.ic;
init_expr = other.init_expr;