Skip to content

Commit 423f7ff

Browse files
committed
Fix memory leak in pods
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
1 parent e6ea562 commit 423f7ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

boot/pod/src/boot/pod.clj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,7 @@
823823
"Closes open resources held by the pod, making the pod eligible for GC."
824824
[pod]
825825
(when pod
826+
(with-eval-in pod (clojure.core/shutdown-agents))
826827
(.close pod)
827828
(.. pod getClassLoader close)))
828829

0 commit comments

Comments
 (0)