Mutex causing memory leaks

Steven Hudson randomproof at
Wed Sep 1 17:26:17 CEST 2010

The main problem I see is that in the macros for
is being called in gcry_pthread_mutex_init() but free() is not being
called because gcry_pthread_mutex_destroy() is not called.

Steven Hudson
randomproof at

On 08/31/2010 09:51 PM, Werner Koch wrote:
> On Mon, 23 Aug 2010 06:57, randomproof at said:
>> I've setup the mutex functions for thread saftey using
>> gcry_control(GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread); but it
>> seams the mutex_destroy function is never called.  It there a function I
>> need to call when the program is closing?
> Mutexes should be destroyed when a process terminates.  It is the OSs
> task.
> Salam-Shalom,
>    Werner

More information about the Gcrypt-devel mailing list