[gnutls-devel] GnuTLS | _gnutls_rnd_init allocates memory per thread but does not seem to deallocate it (#1401)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Mon Sep 12 11:41:05 CEST 2022




Pedro Marzo commented:


Sorry, no idea about the gnulib wrapper.

I created a patch with a possible implementation using pthread_key_create.
The only caveat I see is that the context of the main thread is not freed when gnutls_global_deinit then_gnutls_rnd_deinit is called because the linked list is removed [0001-pthread_key_create-to-store-context.patch](/uploads/e64417525be2f2cc9fc8080ef917e582/0001-pthread_key_create-to-store-context.patch).

However this is just one context and I guess most of the applications will exit after deinitializing the library anyway.

Best Regards, Pedro

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1401#note_1096518628
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20220912/6159ef8f/attachment.html>


More information about the Gnutls-devel mailing list