mirror of
https://github.com/verilator/verilator.git
synced 2025-01-08 15:47:36 +00:00
Fix a memory leak in V3Fork (#4628)
This commit is contained in:
parent
dc346b7ffa
commit
b110c55993
@ -445,7 +445,11 @@ public:
|
|||||||
|
|
||||||
if (typesAdded) v3Global.rootp()->typeTablep()->repairCache();
|
if (typesAdded) v3Global.rootp()->typeTablep()->repairCache();
|
||||||
}
|
}
|
||||||
~DynScopeVisitor() override = default;
|
~DynScopeVisitor() override {
|
||||||
|
std::set<ForkDynScopeFrame*> frames;
|
||||||
|
for (auto node_frame : m_frames) { frames.insert(node_frame.second); }
|
||||||
|
for (auto* frame : frames) { delete frame; }
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
//######################################################################
|
//######################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user