Merge branch 'np/pack-safer'
[gitweb.git] / git-send-email.perl
index bdbfac66256ffc29e26f5c83531c77a18a263808..94ca5c89ad086bac754fb6b6b907fd4e968e8024 100755 (executable)
@@ -374,10 +374,9 @@ sub read_config {
 
                push @files, grep { -f $_ } map { +$f . "/" . $_ }
                                sort readdir(DH);
-
+               closedir(DH);
        } elsif (-f $f or -p $f) {
                push @files, $f;
-
        } else {
                print STDERR "Skipping $f - not found.\n";
        }