From 2f0f10d8298369d0762ad6071c29df62314bfe68 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 25 Jun 2008 15:16:56 +0000 Subject: fix minor fd leak (backport from trunk) --- perl-install/c/stuff.xs.pl | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit v1.2.1