diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-04-18 16:53:25 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-04-18 16:53:25 +0000 |
commit | 7c5855744286a1bee6d9ff0de5457a3403fa13c7 (patch) | |
tree | 529a94a22b6e4f71105423f6d0bda1a0cac4e8d5 | |
parent | 4d603d75d1c1b404a63041bd828215e6e7d1e75c (diff) | |
download | drakx-7c5855744286a1bee6d9ff0de5457a3403fa13c7.tar drakx-7c5855744286a1bee6d9ff0de5457a3403fa13c7.tar.gz drakx-7c5855744286a1bee6d9ff0de5457a3403fa13c7.tar.bz2 drakx-7c5855744286a1bee6d9ff0de5457a3403fa13c7.tar.xz drakx-7c5855744286a1bee6d9ff0de5457a3403fa13c7.zip |
fix minor fd leak
-rw-r--r-- | perl-install/c/stuff.xs.pl | 1 |
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) { |