mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Fix memory leak in previous patch
This commit is contained in:
+1
-1
@@ -680,7 +680,7 @@ class AssertVisitor final : public VNVisitor {
|
||||
&& checkp->condp()->sameTree(nodep->condp())) {
|
||||
++m_statAssertOnCombined;
|
||||
nodep->addThensp(checkp->thensp()->unlinkFrBackWithNext());
|
||||
VL_DO_DANGLING(checkp->unlinkFrBack(), checkp);
|
||||
VL_DO_DANGLING(pushDeletep(checkp->unlinkFrBack()), checkp);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user