Fix memory leak in previous patch

This commit is contained in:
Geza Lore 2026-06-14 14:53:40 +01:00
parent b973b1df5a
commit 9a0cd289e8
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}