mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
hurd: Avoid leaking task & thread ports
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
This commit is contained in:
parent
45000f1231
commit
cb9cae962c
1 changed files with 6 additions and 0 deletions
|
@ -35,6 +35,7 @@ _S_catch_exception_raise (mach_port_t port,
|
|||
#endif
|
||||
)
|
||||
{
|
||||
error_t err;
|
||||
struct hurd_sigstate *ss;
|
||||
int signo;
|
||||
struct hurd_signal_detail d;
|
||||
|
@ -83,6 +84,11 @@ _S_catch_exception_raise (mach_port_t port,
|
|||
MACH_PORT_NULL, MACH_MSG_TYPE_PORT_SEND,
|
||||
0);
|
||||
|
||||
err = __mach_port_deallocate (__mach_task_self (), task);
|
||||
assert_perror (err);
|
||||
err = __mach_port_deallocate (__mach_task_self (), thread);
|
||||
assert_perror (err);
|
||||
|
||||
return KERN_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue