Stream left open in WorkingTreeIterator#filterClean
Change-Id: I17c2709f2613536c02c9ea2977d936b87029ac0d
This commit is contained in:
parent
cd958ba93c
commit
2b3d48acc2
|
@ -395,7 +395,11 @@ private boolean isBinary(Entry entry) throws IOException {
|
||||||
private ByteBuffer filterClean(byte[] src, int n)
|
private ByteBuffer filterClean(byte[] src, int n)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
InputStream in = new ByteArrayInputStream(src);
|
InputStream in = new ByteArrayInputStream(src);
|
||||||
|
try {
|
||||||
return IO.readWholeStream(filterClean(in), n);
|
return IO.readWholeStream(filterClean(in), n);
|
||||||
|
} finally {
|
||||||
|
safeClose(in);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private InputStream filterClean(InputStream in) {
|
private InputStream filterClean(InputStream in) {
|
||||||
|
|
Loading…
Reference in New Issue