Skip to content

Commit 4e5a266

Browse files
committed
fix file leak in pom-properties-map
see boot-clj#138
1 parent 6a8fb88 commit 4e5a266

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

boot/pod/src/boot/pod.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@
133133
(pom-prop-map
134134
(if (instance? Properties prop-or-jarpath)
135135
prop-or-jarpath
136-
(doto (Properties.) (.load (io/input-stream prop-or-jarpath))))))
136+
(with-open [pom-input-stream (io/input-stream prop-or-jarpath)]
137+
(doto (Properties.) (.load pom-input-stream))))))
137138

138139
(defn pom-xml
139140
[jarpath]

0 commit comments

Comments
 (0)