Fix misc memory leaks

This commit is contained in:
Wilson Snyder
2022-12-29 13:59:24 -05:00
parent be42dc906c
commit fde380868a
3 changed files with 6 additions and 1 deletions
+1
View File
@@ -368,6 +368,7 @@ private:
inp = new AstVarRef{nodep->fileline(), invarp, VAccess::READ};
}
nodep->replaceWith(inp);
VL_DO_DANGLING(pushDeletep(nodep), nodep);
}
//========== Move $sampled down to read-only variables