From 330a3cddd6bee024f194b8d1fc01cc44cd1f506d Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 18 Apr 2008 17:24:19 +0000 Subject: fix fd leak when detecting network driver (mostly notable in network center and drakroam) --- perl-install/c/stuff.xs.pl | 1 + 1 file changed, 1 insertion(+) (limited to 'perl-install/c/stuff.xs.pl') 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 -- cgit v1.2.1