mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Merge remote-tracking branch 'origin/topic/jsiwek/fix-enumtype-shallow-clone'
* origin/topic/jsiwek/fix-enumtype-shallow-clone: Fix ref-counting bug in EnumType copy ctor
This commit is contained in:
commit
a45cc53892
5 changed files with 22 additions and 1 deletions
|
@ -1088,6 +1088,9 @@ EnumType::EnumType(const EnumType* e)
|
|||
names[it->first] = it->second;
|
||||
|
||||
vals = e->vals;
|
||||
|
||||
for ( auto& kv : vals )
|
||||
::Ref(kv.second);
|
||||
}
|
||||
|
||||
EnumType* EnumType::ShallowClone()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue