From 423f7ffc26c00aad5bf77354651ba4e73768afda Mon Sep 17 00:00:00 2001 From: Andrea Richiardi Date: Thu, 23 Jun 2016 15:34:17 -0700 Subject: [PATCH] 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 https://github.com/adzerk-oss/boot-test/issues/26 --- boot/pod/src/boot/pod.clj | 1 + 1 file changed, 1 insertion(+) diff --git a/boot/pod/src/boot/pod.clj b/boot/pod/src/boot/pod.clj index f5da91d7..70437ef5 100644 --- a/boot/pod/src/boot/pod.clj +++ b/boot/pod/src/boot/pod.clj @@ -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)))