Skip to content

Commit

Permalink
Fix file handle leak
Browse files Browse the repository at this point in the history
  • Loading branch information
juergenhoetzel committed Apr 14, 2012
1 parent 4e6a235 commit 8316196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bultitude/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
[dir]
(for [f (file-seq (io/file dir))
:when (and (clj? f) (.canRead f))
:let [ns-form (read-ns-form (PushbackReader. (io/reader f)))]
:let [ns-form (with-open [r (PushbackReader. (io/reader f))] (read-ns-form r))]
:when ns-form]
ns-form))

Expand Down

0 comments on commit 8316196

Please sign in to comment.