Skip to content

Commit 45a9dec

Browse files
committed
Do not leak dirhandles
1 parent 126b845 commit 45a9dec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/ExtUtils/Liblist.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ sub ext {
1616
sub lsdir {
1717
shift;
1818
my $rex = qr/$_[1]/;
19+
local *DIR;
1920
opendir DIR, $_[0];
2021
my @out = grep /$rex/, readdir DIR;
2122
closedir DIR;

0 commit comments

Comments
 (0)