Skip to content

Commit 8c17868

Browse files
MadCodergitster
authored andcommitted
git send-email: avoid leaking directory file descriptors.
Signed-off-by: Pierre Habouzit <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 30affa1 commit 8c17868

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

git-send-email.perl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,10 +407,9 @@ sub read_config {
407407

408408
push @files, grep { -f $_ } map { +$f . "/" . $_ }
409409
sort readdir(DH);
410-
410+
closedir(DH);
411411
} elsif (-f $f or -p $f) {
412412
push @files, $f;
413-
414413
} else {
415414
print STDERR "Skipping $f - not found.\n";
416415
}

0 commit comments

Comments
 (0)