Simplify type before deciding how to free it. Hint: calling free() on a running task is usually a bad idea.

This commit is contained in:
Graydon Hoare 2010-07-02 16:42:42 -07:00
parent 8660ce50a1
commit 3070725cce

View File

@ -2616,7 +2616,7 @@ let trans_visitor
(cell:Il.cell)
(curr_iso:Ast.ty_iso option)
: unit =
match ty with
match simplified_ty ty with
Ast.TY_port _ -> trans_del_port cell
| Ast.TY_chan _ -> trans_del_chan cell
| Ast.TY_task -> trans_kill_task cell