浏览代码

* fixed memory leak in dosimplify

git-svn-id: trunk@6825 -
Jonas Maebe 18 年之前
父节点
当前提交
9d6026827d
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      compiler/nutils.pas

+ 1 - 0
compiler/nutils.pas

@@ -682,6 +682,7 @@ implementation
         if assigned(hn) then
         if assigned(hn) then
           begin
           begin
             treechanged:=true;
             treechanged:=true;
+            n.free;
             n:=hn;
             n:=hn;
             typecheckpass(n);
             typecheckpass(n);
           end;
           end;