summaryrefslogtreecommitdiffstats
path: root/perl-install/c
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/c')
-rw-r--r--perl-install/c/stuff.xs.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/c/stuff.xs.pl b/perl-install/c/stuff.xs.pl
index 4b8ca36f4..3058d4b66 100644
--- a/perl-install/c/stuff.xs.pl
+++ b/perl-install/c/stuff.xs.pl
@@ -354,6 +354,7 @@ get_netdevices()
if (ioctl(s, SIOCGIFCONF, &ifc) < 0) {
perror("SIOCGIFCONF");
+ close(s);
return;
}
if (ifc.ifc_len == sizeof(struct ifreq) * numreqs) {