diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2018-10-20 18:04:41 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@gmail.com> | 2018-10-20 18:06:27 +0900 |
commit | 36432ac4e36cf8d59e45877ea69de70354e0ca0b (patch) | |
tree | 32b70386d860798a5df4e2d5371c55af48ae2027 /org.eclipse.jgit.lfs.server/src/org/eclipse/jgit | |
parent | 40f5b28545989f7e200f6e0b2007459d63279103 (diff) | |
parent | b65e2475684273e2398b3ad58ecb48eff04ea9d5 (diff) | |
download | jgit-36432ac4e36cf8d59e45877ea69de70354e0ca0b.tar.gz jgit-36432ac4e36cf8d59e45877ea69de70354e0ca0b.zip |
Merge branch 'stable-5.1'
* stable-5.1:
Prepare 5.1.4-SNAPSHOT builds
JGit v5.1.3.201810200350-r
Prepare 4.11.6-SNAPSHOT builds
JGit v4.11.5.201810191925-r
Prepare 4.9.8-SNAPSHOT builds
JGit v4.9.7.201810191756-r
Update API problem filter
Prepare 4.7.7-SNAPSHOT builds
JGit v4.7.6.201810191618-r
Update API problem filter
Fix file handle leak in ObjectDownloadListener.onWritePossible
Replace Findbugs with Spotbugs in org.eclipse.jgit/pom.xml
Replace FindBugs with SpotBugs
Prepare 4.4.2-SNAPSHOT builds
JGit v4.0.3.201509231615-r
Change-Id: Ic8b2189fdd8403294327a17cc0c1f6a6e2f78cb8
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.lfs.server/src/org/eclipse/jgit')
-rw-r--r-- | org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/fs/ObjectDownloadListener.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/fs/ObjectDownloadListener.java b/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/fs/ObjectDownloadListener.java index 62601915ee..06a7726955 100644 --- a/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/fs/ObjectDownloadListener.java +++ b/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/fs/ObjectDownloadListener.java @@ -124,7 +124,7 @@ public class ObjectDownloadListener implements WriteListener { } else { buffer.flip(); } - } catch(Throwable t) { + } catch (Throwable t) { LOG.log(Level.SEVERE, t.getMessage(), t); buffer = null; } finally { @@ -132,6 +132,11 @@ public class ObjectDownloadListener implements WriteListener { outChannel.write(buffer); } else { try { + in.close(); + } catch (IOException e) { + LOG.log(Level.SEVERE, e.getMessage(), e); + } + try { out.close(); } finally { context.complete(); |