[PATCH] Fix fd leak in git-cvsimport-script
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 6 Jul 2005 06:37:12 +0000 (08:37 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 6 Jul 2005 15:47:08 +0000 (08:47 -0700)
Remember to close temporary file

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
git-cvsimport-script

index 4c0333b9290a15d6222f68b6397fc456116854cd..6d5a7fad38b128876903c96ce3badcc01001b185 100755 (executable)
@@ -317,6 +317,7 @@ sub file {
            $res = $self->_line($fh);
            die "No input: $fn $rev\n" unless defined $res;
        }
+       close ($fh);
 
        return ($name, $res);
 }