Fix memory leak in previous patch
This commit is contained in:
parent
b973b1df5a
commit
9a0cd289e8
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue