Fix leak issues, bug521

This commit is contained in:
Wilson Snyder
2012-05-30 23:17:55 -04:00
parent 4cc5943f90
commit 1b439703ff
7 changed files with 37 additions and 26 deletions
+1 -1
View File
@@ -1204,7 +1204,7 @@ private:
AstNode* bilhsp = fromp->lhsp()->unlinkFrBack();
//
fromp->lhsp(new AstSel(nodep->fileline(),
bilhsp, lsbp->cloneTree(true), widthp->cloneTree(true)));
bilhsp, lsbp, widthp));
fromp->dtypeFrom(nodep);
nodep->replaceWith(fromp); nodep->deleteTree(); nodep=NULL;
}