mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Fix read-after-free error detected by valgrind, bug1031.
Signed-off-by: Wilson Snyder <[email protected]>
This commit is contained in:
committed by
Wilson Snyder
parent
b488666c1e
commit
be74806044
+3
-1
@@ -334,7 +334,9 @@ private:
|
||||
nodep->iterateChildren(*this);
|
||||
} else {
|
||||
// A block that was just moved under a scope, Kill it.
|
||||
nodep->unlinkFrBack()->deleteTree(); VL_DANGLING(nodep);
|
||||
// Certain nodes can be referenced later in this pass, notably
|
||||
// an FTaskRef needs to access the FTask to find the cloned task
|
||||
pushDeletep(nodep->unlinkFrBack()); VL_DANGLING(nodep);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user