From 803daeb87184d4e08267bd76237793a0b52ccbb2 Mon Sep 17 00:00:00 2001 From: randi Date: Wed, 21 Apr 2010 12:02:45 +0000 Subject: Fix bug introduced in r198317: Don't leak a file descriptor after scanning for network devices. Approved by: cperciva (mentor) MFC after: 1 week (original commit + bugfix) --- usr.sbin/sysinstall/tcpip.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr.sbin') diff --git a/usr.sbin/sysinstall/tcpip.c b/usr.sbin/sysinstall/tcpip.c index 75a40e8..1c1d676 100644 --- a/usr.sbin/sysinstall/tcpip.c +++ b/usr.sbin/sysinstall/tcpip.c @@ -683,6 +683,8 @@ tcpDeviceScan(void) } } + close(s); + freeifaddrs(ifap); return (NULL); -- cgit v1.1