diff options
| author | ComputeryPony <ComputeryPony@gmail.com> | 2026-05-08 17:02:38 -0500 |
|---|---|---|
| committer | ComputeryPony <ComputeryPony@gmail.com> | 2026-05-08 17:02:38 -0500 |
| commit | dede3a5d7198b675afd480a4c9aa9715746e3dae (patch) | |
| tree | cb048a94e7d0f51642e44bc9218c025a5812b4d9 /src | |
| parent | 3ca4c30f73fe22d16a46cfba122556437da3618d (diff) | |
| download | monzero-core-dede3a5d7198b675afd480a4c9aa9715746e3dae.tar.gz monzero-core-dede3a5d7198b675afd480a4c9aa9715746e3dae.tar.xz monzero-core-dede3a5d7198b675afd480a4c9aa9715746e3dae.zip | |
crypto: implement CTHR_THREAD_CLOSE to avoid leaking memory
Diffstat (limited to 'src')
| -rw-r--r-- | src/crypto/c_threads.h | 2 |
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 |
