deallocation in gnutls_*_deinit?

Nikos Mavrogiannopoulos nmav at gnutls.org
Wed Jun 30 16:36:19 CEST 2010


Mads Kiilerich wrote:
>  Hi
> 
> Newbie question here:
> 
> According to valgrind and the source then for example gnutls_hash_init
> and gnutls_cipher_init does a gnutls_malloc, but the corresponding
> _deinit apparently doesn't free it.
> 
> The documentation doesn't mention anything, and I would thus expect
> gnutls_hash_deinit & friends to do the necessary gnutls_free.
> 
> What have I missed?
> 
> Should I explicitly call gnutls_free after gnutls_*_deinit?

No you shouldn't. It's a bug. Thank you for reporting it. I corrected it at:
http://git.savannah.gnu.org/gitweb/?p=gnutls.git;a=commitdiff;h=75ed7cb709d949f012afff73e4728889e0e65681


regards,
Nikos




More information about the Gnutls-help mailing list