summaryrefslogtreecommitdiff
path: root/git-cvsimport-script
diff options
context:
space:
mode:
authorSven Verdoolaege <skimo@kotnet.org>2005-07-06 06:37:12 (GMT)
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-06 15:47:08 (GMT)
commitc619ad510b39a07c76cc6a112e4a065e0b8d1b14 (patch)
treeda89b0c91b6610966a5d41d5461fe8849321009a /git-cvsimport-script
parent5b35bcd53a1cf12c657197d15db0fb2a5dca7b96 (diff)
downloadgit-c619ad510b39a07c76cc6a112e4a065e0b8d1b14.zip
git-c619ad510b39a07c76cc6a112e4a065e0b8d1b14.tar.gz
git-c619ad510b39a07c76cc6a112e4a065e0b8d1b14.tar.bz2
[PATCH] Fix fd leak in git-cvsimport-script
Remember to close temporary file Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'git-cvsimport-script')
-rwxr-xr-xgit-cvsimport-script1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-cvsimport-script b/git-cvsimport-script
index 4c0333b..6d5a7fa 100755
--- a/git-cvsimport-script
+++ b/git-cvsimport-script
@@ -317,6 +317,7 @@ sub file {
$res = $self->_line($fh);
die "No input: $fn $rev\n" unless defined $res;
}
+ close ($fh);
return ($name, $res);
}