summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorrandi <randi@FreeBSD.org>2010-04-21 12:02:45 +0000
committerrandi <randi@FreeBSD.org>2010-04-21 12:02:45 +0000
commit803daeb87184d4e08267bd76237793a0b52ccbb2 (patch)
treeab3a63271454f94be8423d0746205fad1043e9d6 /usr.sbin
parent6f1324bb0a4d4c8e22205a9331f68d4dd8659d10 (diff)
downloadFreeBSD-src-803daeb87184d4e08267bd76237793a0b52ccbb2.zip
FreeBSD-src-803daeb87184d4e08267bd76237793a0b52ccbb2.tar.gz
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)
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sysinstall/tcpip.c2
1 files changed, 2 insertions, 0 deletions
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);
OpenPOWER on IntegriCloud