summaryrefslogtreecommitdiffstats
path: root/perl-install/c/stuff.xs.pl
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-04-18 17:24:19 +0000
committerOlivier Blin <oblin@mandriva.com>2008-04-18 17:24:19 +0000
commit330a3cddd6bee024f194b8d1fc01cc44cd1f506d (patch)
treee5cb42d5753114b3e5cbdbb80dde9be58c4e1a80 /perl-install/c/stuff.xs.pl
parent7c5855744286a1bee6d9ff0de5457a3403fa13c7 (diff)
downloaddrakx-330a3cddd6bee024f194b8d1fc01cc44cd1f506d.tar
drakx-330a3cddd6bee024f194b8d1fc01cc44cd1f506d.tar.gz
drakx-330a3cddd6bee024f194b8d1fc01cc44cd1f506d.tar.bz2
drakx-330a3cddd6bee024f194b8d1fc01cc44cd1f506d.tar.xz
drakx-330a3cddd6bee024f194b8d1fc01cc44cd1f506d.zip
fix fd leak when detecting network driver (mostly notable in network center and drakroam)
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 3058d4b66..a94de81fa 100644
--- a/perl-install/c/stuff.xs.pl
+++ b/perl-install/c/stuff.xs.pl
@@ -401,6 +401,7 @@ getNetDriver(char* device)
break;
}
} else { perror("SIOCETHTOOL"); RETVAL = strdup(""); }
+ close(s);
OUTPUT:
RETVAL