summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-06-25 15:19:44 +0000
committerOlivier Blin <oblin@mandriva.com>2008-06-25 15:19:44 +0000
commit08d46c8072df9e5f8eb140bf6db254ed03b68f19 (patch)
tree768e61facd668c0002558468b1c7519239e2a6d3
parent2f0f10d8298369d0762ad6071c29df62314bfe68 (diff)
downloaddrakx-08d46c8072df9e5f8eb140bf6db254ed03b68f19.tar
drakx-08d46c8072df9e5f8eb140bf6db254ed03b68f19.tar.gz
drakx-08d46c8072df9e5f8eb140bf6db254ed03b68f19.tar.bz2
drakx-08d46c8072df9e5f8eb140bf6db254ed03b68f19.tar.xz
drakx-08d46c8072df9e5f8eb140bf6db254ed03b68f19.zip
fix fd leak when detecting network driver (mostly notable in network center and drakroam)
-rw-r--r--perl-install/NEWS2
-rw-r--r--perl-install/c/stuff.xs.pl1
2 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 0405f9207..e48e9c7e6 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,5 +1,7 @@
- drakupdate_fstab: make sure removable disks are not fs-checked on boot
(regression introduced in 10.6.3)
+- fix file descriptor leak when detecting network driver
+ (mostly notable in network center and drakroam)
Version 10.29.7 - 03 June 2008
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