From ce8174c9508eb6fe2c0c0e551a594e3b1a783c32 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..76094388 100644 --- a/boot/pod/src/boot/pod.clj +++ b/boot/pod/src/boot/pod.clj @@ -824,6 +824,7 @@ [pod] (when pod (.close pod) + (clojure.core/shutdown-agents) (.. pod getClassLoader close))) (defn pod-pool