mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Fix memory leaks - batch 1 (#6411)
This commit is contained in:
+1
-1
@@ -588,7 +588,7 @@ void inlineCell(AstNodeModule* modp, AstCell* cellp, bool last) {
|
||||
// Delete the empty shell of the inlined module
|
||||
VL_DO_DANGLING(inlinedp->deleteTree(), inlinedp);
|
||||
// Remove the cell we just inlined
|
||||
VL_DO_DANGLING(cellp->unlinkFrBack(), cellp);
|
||||
VL_DO_DANGLING(cellp->unlinkFrBack()->deleteTree(), cellp);
|
||||
}
|
||||
|
||||
// Apply all inlining decisions
|
||||
|
||||
Reference in New Issue
Block a user