Index: kernel/test/cht/cht1.c
===================================================================
--- kernel/test/cht/cht1.c	(revision 205832be3aac366938f4e110d02825acf0142693)
+++ kernel/test/cht/cht1.c	(revision dcb07513e66a1ecb603d6f380ffee05fa3b4e187)
@@ -530,4 +530,5 @@
 	for (size_t i = op_thread_cnt; i < total_thr_cnt; ++i) {
 		thread_join(thr[i]);
+		thread_detach(thr[i]);
 		failed = pwork[i].failed || failed;
 	}
@@ -537,4 +538,5 @@
 		TPRINTF("%d threads remain\n", i);
 		thread_join(thr[i]);
+		thread_detach(thr[i]);
 		failed = pwork[i].failed || failed;
 	}
