mirror of
https://github.com/verilator/verilator.git
synced 2026-08-31 18:14:33 +02:00
Plug memory leaks (#5016)
This commit is contained in:
@@ -53,6 +53,7 @@ class ConvertWriteRefsToRead final : public VNVisitor {
|
||||
if (nodep->access().isWriteOnly()) {
|
||||
nodep->replaceWith(
|
||||
new AstVarRef{nodep->fileline(), nodep->varScopep(), VAccess::READ});
|
||||
VL_DO_DANGLING(pushDeletep(nodep), nodep);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user