From 45f883fe5df3e167e2f54b99619a43dc5e4b133a Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Wed, 18 Oct 2000 15:21:52 +0000 Subject: 2000-10-18 Marcus Brinkmann * devprobe.c (main): Call device_close before freeing the device port. --- utils/ChangeLog | 5 +++++ utils/devprobe.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/utils/ChangeLog b/utils/ChangeLog index 21d1b5b4..2eb8f4eb 100644 --- a/utils/ChangeLog +++ b/utils/ChangeLog @@ -1,3 +1,8 @@ +2000-10-18 Marcus Brinkmann + + * devprobe.c (main): Call device_close before freeing the device + port. + 2000-07-27 Thomas Bushnell, BSG * portinfo.c: Comment out unimplemented argument diff --git a/utils/devprobe.c b/utils/devprobe.c index f3ea01f3..4b97a6a4 100644 --- a/utils/devprobe.c +++ b/utils/devprobe.c @@ -75,6 +75,8 @@ main (int argc, char **argv) if (err == 0) /* Got it. */ { + device_close (device); + /* Free the device port we got. */ mach_port_deallocate (mach_task_self (), device); -- cgit v1.2.3