help-gnutls
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: deallocation in gnutls_*_deinit?


From: Mads Kiilerich
Subject: Re: deallocation in gnutls_*_deinit?
Date: Wed, 30 Jun 2010 17:27:44 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.4) Gecko/20100624 Fedora/3.1-1.fc13 Thunderbird/3.1

On 06/30/2010 04:36 PM, Nikos Mavrogiannopoulos wrote:
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

Thanks.

What do you recommend: Should I implement a workaround for 2.10.0 (and how?) or should I require 2.10.1? Is there a planned/estimated data of a release?

/Mads



reply via email to

[Prev in Thread] Current Thread [Next in Thread]