summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2018-01-11 23:49:17 -0800
committerLi Haoyi <haoyi.sg@gmail.com>2018-01-11 23:49:17 -0800
commitdea3b0d87facc657d42072ecffa791eaedc39017 (patch)
tree26451f2924cc7646055d07caf123e7f2e509c41f /core
parentcf1bd5afba6d7c3fb3337e50f256f07c56e88571 (diff)
downloadmill-dea3b0d87facc657d42072ecffa791eaedc39017.tar.gz
mill-dea3b0d87facc657d42072ecffa791eaedc39017.tar.bz2
mill-dea3b0d87facc657d42072ecffa791eaedc39017.zip
Properly close file inputstreams after hashing files, and eagerly close classloaders used for running tests
Diffstat (limited to 'core')
-rw-r--r--core/src/main/scala/mill/eval/PathRef.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/main/scala/mill/eval/PathRef.scala b/core/src/main/scala/mill/eval/PathRef.scala
index 784d9ad4..0a629a14 100644
--- a/core/src/main/scala/mill/eval/PathRef.scala
+++ b/core/src/main/scala/mill/eval/PathRef.scala
@@ -47,6 +47,8 @@ case class PathRef(path: ammonite.ops.Path, quick: Boolean = false){
}
}
rec()
+
+ is.close()
}
FileVisitResult.CONTINUE
}