Skip to content

Commit

Permalink
Merge pull request scala#5172 from melekhove/issue/5171
Browse files Browse the repository at this point in the history
Fix scala#5171: Close input stream after reading its content
  • Loading branch information
liufengyun authored Oct 1, 2018
2 parents 2cb678a + b77ce96 commit 0309bbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/src/dotty/tools/dotc/plugins/Plugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 0309bbf

Please sign in to comment.