mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
zeekygen/IdentifierInfo: fix memory leak in operator=()
This commit is contained in:
parent
b84693e546
commit
c074122f13
1 changed files with 2 additions and 0 deletions
|
@ -165,6 +165,8 @@ IdentifierInfo::Redefinition::operator=(const IdentifierInfo::Redefinition& othe
|
||||||
if ( &other == this )
|
if ( &other == this )
|
||||||
return *this;
|
return *this;
|
||||||
|
|
||||||
|
Unref(init_expr);
|
||||||
|
|
||||||
from_script = other.from_script;
|
from_script = other.from_script;
|
||||||
ic = other.ic;
|
ic = other.ic;
|
||||||
init_expr = other.init_expr;
|
init_expr = other.init_expr;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue