diff options
author | randi <randi@FreeBSD.org> | 2010-04-21 12:02:45 +0000 |
---|---|---|
committer | randi <randi@FreeBSD.org> | 2010-04-21 12:02:45 +0000 |
commit | 803daeb87184d4e08267bd76237793a0b52ccbb2 (patch) | |
tree | ab3a63271454f94be8423d0746205fad1043e9d6 | |
parent | 6f1324bb0a4d4c8e22205a9331f68d4dd8659d10 (diff) | |
download | FreeBSD-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)
-rw-r--r-- | usr.sbin/sysinstall/tcpip.c | 2 |
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); |