Fix memory leaks - batch 1 (#6411)

This commit is contained in:
Geza Lore
2025-09-09 22:39:44 +01:00
committed by GitHub
parent 83ff8e13ba
commit dd11d5a598
26 changed files with 228 additions and 191 deletions
+1 -1
View File
@@ -1774,7 +1774,7 @@ V3TaskConnects V3Task::taskConnects(AstNodeFTaskRef* nodep, AstNode* taskStmtsp,
}
}
}
newvaluep = newvaluep->cloneTree(true);
newvaluep = newvaluep->backp() ? newvaluep->cloneTree(true) : newvaluep;
// To avoid problems with callee needing to know to deleteTree
// or not, we make this into a pin
UINFO(9, "Default pin for " << portp);