Fix various small node leaks.

This commit is contained in:
Wilson Snyder 2018-03-10 14:10:41 -05:00
parent 54a101acbe
commit 0a1b775ed6

View File

@ -186,8 +186,9 @@ private:
bool canSimulate(AstNode *nodep) { bool canSimulate(AstNode *nodep) {
SimulateVisitor simvis; SimulateVisitor simvis;
AstNode* clone = nodep->cloneTree(true); AstNode* clonep = nodep->cloneTree(true);
simvis.mainCheckTree(clone); simvis.mainCheckTree(clonep);
pushDeletep(clonep); clonep = NULL;
return simvis.optimizable(); return simvis.optimizable();
} }