aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortobtoht <tob@featherwallet.org>2026-05-09 19:23:00 +0000
committertobtoht <tob@featherwallet.org>2026-05-09 19:23:00 +0000
commit7dd6b5daec9672b9860ae6ff65424780eab9750e (patch)
treecb048a94e7d0f51642e44bc9218c025a5812b4d9
parent3ca4c30f73fe22d16a46cfba122556437da3618d (diff)
parentdede3a5d7198b675afd480a4c9aa9715746e3dae (diff)
downloadmonzero-core-7dd6b5daec9672b9860ae6ff65424780eab9750e.tar.gz
monzero-core-7dd6b5daec9672b9860ae6ff65424780eab9750e.tar.xz
monzero-core-7dd6b5daec9672b9860ae6ff65424780eab9750e.zip
Merge pull request #10546
dede3a5 crypto: implement CTHR_THREAD_CLOSE to avoid leaking memory (ComputeryPony)
-rw-r--r--src/crypto/c_threads.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/c_threads.h b/src/crypto/c_threads.h
index 3457738b3..d84f7977e 100644
--- a/src/crypto/c_threads.h
+++ b/src/crypto/c_threads.h
@@ -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