diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2009-12-21 22:43:54 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2009-12-21 22:43:54 +0100 |
commit | 7d42ebb20eedf0e5dce457f8355a0e2d29ca5021 (patch) | |
tree | 15188aa270ce1c9d26fa4d90bd7b8a0d1a2573ee /exec | |
parent | d9db5347164bd71f5966ae4b88047d50376b0b12 (diff) |
Fix duplicate oldtask port deallocation
* exec/exec.c (do_exec): Do not deallocate oldtask when
newtask != oldtask before the `out:' label since it is done
again after it.
Diffstat (limited to 'exec')
-rw-r--r-- | exec/exec.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/exec/exec.c b/exec/exec.c index daa8a24b..272b7899 100644 --- a/exec/exec.c +++ b/exec/exec.c @@ -1884,8 +1884,6 @@ do_exec (file_t file, proc_reassign (proc, newtask); mach_port_deallocate (mach_task_self (), proc); } - - mach_port_deallocate (mach_task_self (), oldtask); } /* Make sure the proc server has the right idea of our identity. */ |