[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH hurd 2/7] libdiskfs: fix port leak
From: |
Samuel Thibault |
Subject: |
Re: [PATCH hurd 2/7] libdiskfs: fix port leak |
Date: |
Sat, 17 Jan 2015 18:38:33 +0100 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Sat 17 Jan 2015 18:26:41 +0100, a écrit :
> * libdiskfs/boot-start.c (get_console): Deallocate `device_master'.
Ack, thanks!
> ---
> libdiskfs/boot-start.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/libdiskfs/boot-start.c b/libdiskfs/boot-start.c
> index cfe2303..9be8ed2 100644
> --- a/libdiskfs/boot-start.c
> +++ b/libdiskfs/boot-start.c
> @@ -61,6 +61,7 @@ get_console ()
> return MACH_PORT_NULL;
>
> err = device_open (device_master, D_WRITE | D_READ, "console", &console);
> + mach_port_deallocate (mach_task_self (), device_master);
> if (err)
> return MACH_PORT_NULL;
>
> --
> 2.1.4
>
--
Samuel
* x remarque qu'avec un peu de volonté, on peut faire du code de porc
dans d'importe quel langage Turing-complet
-+- x sur #ens-mim - codons porc -+-
- [PATCH hurd 1/7] libfshelp: improve error handling, Justus Winter, 2015/01/17
- [PATCH hurd 2/7] libdiskfs: fix port leak, Justus Winter, 2015/01/17
- Re: [PATCH hurd 2/7] libdiskfs: fix port leak,
Samuel Thibault <=
- [PATCH hurd 4/7] startup: give the tasks we create a name, Justus Winter, 2015/01/17
- [PATCH hurd 3/7] libports: silence pointless error message, Justus Winter, 2015/01/17
- [PATCH hurd 6/7] auth: remove implicit assumption about the bootstrap process, Justus Winter, 2015/01/17
- [PATCH hurd 7/7] proc: call `startup_essential_task' earlier, Justus Winter, 2015/01/17
- [PATCH hurd 5/7] auth: simplify expression, Justus Winter, 2015/01/17