diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-06-25 15:19:44 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-06-25 15:19:44 +0000 |
commit | 08d46c8072df9e5f8eb140bf6db254ed03b68f19 (patch) | |
tree | 768e61facd668c0002558468b1c7519239e2a6d3 /perl-install/c | |
parent | 2f0f10d8298369d0762ad6071c29df62314bfe68 (diff) | |
download | drakx-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)
Diffstat (limited to 'perl-install/c')
-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 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 |