diff --git a/src/zeekygen/IdentifierInfo.cc b/src/zeekygen/IdentifierInfo.cc index 5ff5b5dfa3..36f5036f73 100644 --- a/src/zeekygen/IdentifierInfo.cc +++ b/src/zeekygen/IdentifierInfo.cc @@ -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;