mirror of
https://github.com/verilator/verilator.git
synced 2026-09-02 18:58:51 +02:00
Plug memory leaks (#5016)
This commit is contained in:
@@ -80,7 +80,8 @@ class LinkResolveVisitor final : public VNVisitor {
|
||||
// Initial assignments under function/tasks can just be simple
|
||||
// assignments without the initial
|
||||
if (m_ftaskp) {
|
||||
VL_DO_DANGLING(nodep->replaceWith(nodep->stmtsp()->unlinkFrBackWithNext()), nodep);
|
||||
nodep->replaceWith(nodep->stmtsp()->unlinkFrBackWithNext());
|
||||
VL_DO_DANGLING(pushDeletep(nodep), nodep);
|
||||
}
|
||||
}
|
||||
void visit(AstNodeCoverOrAssert* nodep) override {
|
||||
|
||||
Reference in New Issue
Block a user