Mutex causing memory leaks
Werner Koch
wk at gnupg.org
Thu Sep 2 16:21:38 CEST 2010
On Wed, 1 Sep 2010 17:26, randomproof at fastmail.us said:
> The main problem I see is that in the macros for
> GCRY_THREAD_OPTION_PTH_IMPL and GCRY_THREAD_OPTION_PTHREAD_IMPL malloc()
> is being called in gcry_pthread_mutex_init() but free() is not being
> called because gcry_pthread_mutex_destroy() is not called.
Well, the heap is part of the process and thus destroyed at the
process termination.
Salam-Shalom,
Werner
--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
More information about the Gcrypt-devel
mailing list