summaryrefslogtreecommitdiffstats
path: root/perl-install/c/stuff.xs.pl
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-04-18 16:53:25 +0000
committerOlivier Blin <oblin@mandriva.com>2008-04-18 16:53:25 +0000
commit7c5855744286a1bee6d9ff0de5457a3403fa13c7 (patch)
tree529a94a22b6e4f71105423f6d0bda1a0cac4e8d5 /perl-install/c/stuff.xs.pl
parent4d603d75d1c1b404a63041bd828215e6e7d1e75c (diff)
downloaddrakx-7c5855744286a1bee6d9ff0de5457a3403fa13c7.tar
drakx-7c5855744286a1bee6d9ff0de5457a3403fa13c7.tar.gz
drakx-7c5855744286a1bee6d9ff0de5457a3403fa13c7.tar.bz2
drakx-7c5855744286a1bee6d9ff0de5457a3403fa13c7.tar.xz
drakx-7c5855744286a1bee6d9ff0de5457a3403fa13c7.zip
fix minor fd leak
Diffstat (limited to 'perl-install/c/stuff.xs.pl')
-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) {