]> source.dussan.org Git - jgit.git/commit
Fix file handle leak in FetchCommand#fetchSubmodules 16/114916/1
authorTim Hosey <timhoseydev@gmail.com>
Thu, 4 Jan 2018 01:58:05 +0000 (02:58 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Thu, 4 Jan 2018 01:58:05 +0000 (02:58 +0100)
commit67a8858b945944cc94baf9a2f6e4516bc283656b
treef16d0fc3d36df90ef7a5d88e418d23abe1bc60b4
parent5a4b6fd237ebab03001f55a06cdf2a59d4ca3566
Fix file handle leak in FetchCommand#fetchSubmodules

The private fetchSubmodules method in the FetchCommand class creates a
Repository instance for each submodule being fetched, but never calls
closes on it.

This leads to the leaking of file handles.

Bug: 526494
Change-Id: I7070388b8b62063d9d5cd31afae3015a8388044f
Signed-off-by: Tim Hosey <timhoseydev@gmail.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/api/FetchCommand.java