diff --git a/compiler/src/dotty/tools/dotc/plugins/Plugin.scala b/compiler/src/dotty/tools/dotc/plugins/Plugin.scala index 585fae1c53e8..b4bfe0a65e85 100644 --- a/compiler/src/dotty/tools/dotc/plugins/Plugin.scala +++ b/compiler/src/dotty/tools/dotc/plugins/Plugin.scala @@ -103,6 +103,7 @@ object Plugin { def fromFile(inputStream: InputStream, path: Path): String = { val props = new Properties props.load(inputStream) + inputStream.close() val pluginClass = props.getProperty("pluginClass")