From e2b1c5c20ff1ac0017e7ac8ef853ce3326210077 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Fri, 16 Jan 2015 10:10:42 +0100 Subject: libdiskfs: fix port leak * libdiskfs/boot-start.c (get_console): Deallocate `device_master'. --- libdiskfs/boot-start.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libdiskfs') diff --git a/libdiskfs/boot-start.c b/libdiskfs/boot-start.c index cfe23034..9be8ed28 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; -- cgit v1.2.3