Skip to content

Commit e16a367

Browse files
committed
Revert accidental memleak
Signed-off-by: Arkadiusz Kozdra <akozdra@antmicro.com>
1 parent 919569b commit e16a367

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/V3LinkDot.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -2758,6 +2758,7 @@ class LinkDotResolveVisitor final : public VNVisitor {
27582758
nodep->replaceWith(new AstMemberSel{
27592759
nodep->fileline(), m_randMethodCallp->fromp()->cloneTree(false),
27602760
VFlagChildDType{}, nodep->name()});
2761+
VL_DO_DANGLING(pushDeletep(nodep), nodep);
27612762
return;
27622763
}
27632764
UINFO(9, " randomize-with fromSym " << foundp->nodep() << endl);

0 commit comments

Comments
 (0)