From 7d42ebb20eedf0e5dce457f8355a0e2d29ca5021 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 21 Dec 2009 22:43:54 +0100 Subject: 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. --- exec/exec.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'exec/exec.c') 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. */ -- cgit v1.2.3