Stream left open in WorkingTreeIterator#filterClean

Change-Id: I17c2709f2613536c02c9ea2977d936b87029ac0d
This commit is contained in:
Tomasz Zarna 2011-12-06 10:44:52 +01:00
parent cd958ba93c
commit 2b3d48acc2
1 changed files with 5 additions and 1 deletions

View File

@ -395,7 +395,11 @@ private boolean isBinary(Entry entry) throws IOException {
private ByteBuffer filterClean(byte[] src, int n)
throws IOException {
InputStream in = new ByteArrayInputStream(src);
return IO.readWholeStream(filterClean(in), n);
try {
return IO.readWholeStream(filterClean(in), n);
} finally {
safeClose(in);
}
}
private InputStream filterClean(InputStream in) {