crypto: implement CTHR_THREAD_CLOSE to avoid leaking memory

This commit is contained in:
ComputeryPony
2026-05-03 14:44:41 -05:00
parent dace76882d
commit f73c72d4d7
+1 -1
View File
@@ -65,6 +65,6 @@
#define CTHR_THREAD_RETURN return NULL
#define CTHR_THREAD_CREATE(thr, func, arg) (pthread_create(&thr, NULL, func, arg) == 0)
#define CTHR_THREAD_JOIN(thr) pthread_join(thr, NULL)
#define CTHR_THREAD_CLOSE(thr)
#define CTHR_THREAD_CLOSE(thr) pthread_detach(thr)
#endif