]> err.no Git - dpkg/commitdiff
dpkg-shlibdeps: Close file descriptor after use
authorFrank Lichtenheld <djpig@debian.org>
Sat, 22 Sep 2007 19:49:20 +0000 (21:49 +0200)
committerFrank Lichtenheld <djpig@debian.org>
Sat, 22 Sep 2007 19:49:20 +0000 (21:49 +0200)
Unneeded file descriptors should be closed ASAP.

scripts/dpkg-shlibdeps.pl

index 7fa7e99009bccbba283ff29969e1f73c5b6446f5..327f3196ca79c1c4829c47ced81eb205d1b61968 100755 (executable)
@@ -200,6 +200,7 @@ if ($stdout) {
            print(NEW $entry) ||
                syserr(sprintf(_g("copy old entry to new varlist file \`%s'"), "$varlistfile.new"));
        }
+       close(OLD);
     }
     $fh = \*NEW;
 }