From: Sven Verdoolaege Date: Wed, 6 Jul 2005 06:37:12 +0000 (+0200) Subject: [PATCH] Fix fd leak in git-cvsimport-script X-Git-Tag: v0.99~58 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c619ad510b39a07c76cc6a112e4a065e0b8d1b14;p=git.git [PATCH] Fix fd leak in git-cvsimport-script Remember to close temporary file Signed-off-by: Linus Torvalds --- diff --git a/git-cvsimport-script b/git-cvsimport-script index 4c0333b92..6d5a7fad3 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); }