Skip to content

Commit

Permalink
Fix memory leak in pods
Browse files Browse the repository at this point in the history
This was particularly evident when doing `boot watch test` and has been fixed thanks to Micha's
intuition of adding a clojure.core/shutdown-agents in boot.pod/destroy-pod.

Fixes adzerk-oss/boot-test#26
  • Loading branch information
arichiardi committed Jun 23, 2016
1 parent e6ea562 commit 423f7ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions boot/pod/src/boot/pod.clj
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,7 @@
"Closes open resources held by the pod, making the pod eligible for GC."
[pod]
(when pod
(with-eval-in pod (clojure.core/shutdown-agents))
(.close pod)
(.. pod getClassLoader close)))

Expand Down

0 comments on commit 423f7ff

Please sign in to comment.