leak?

Nikos Mavrogiannopoulos nmav at gnutls.org
Wed Nov 3 17:48:57 CET 2010


On 11/03/2010 05:29 PM, Mike Blumenkrantz wrote:
> Hi,
> 
> I've been valgrinding some of my gnutls-using apps and have found what appears
> to be a small leak in the handshaking code (using 2.10.2).  ecore_con_ssl.c can
> be found here:
> https://svn.enlightenment.org/svn/e/trunk/ecore/src/lib/ecore_con/ecore_con_ssl.c
> 
> ==19053== 1,024 bytes in 1 blocks are definitely lost in loss record 146 of 160
> ==19053==    at 0x4027A66: malloc (vg_replace_malloc.c:236)
> ==19053==    by 0x40B77D4: _gnutls_send_client_hello (gnutls_handshake.c:1985)
> ==19053==    by 0x40B8253: _gnutls_send_hello (gnutls_handshake.c:2299)
> ==19053==    by 0x40B9037: _gnutls_handshake_client (gnutls_handshake.c:2775)
> ==19053==    by 0x40B8F0D: gnutls_handshake (gnutls_handshake.c:2699)
> ==19053==    by 0x4055063: _ecore_con_ssl_server_init_gnutls
> (ecore_con_ssl.c:515)
> 
> 
> This leak occurs client side every single time I handshake.

Thanks it seems it was introduced with 2.10 and eliminated again in
2.11. Anyway, does the following patch solve the issue for you?

http://git.savannah.gnu.org/gitweb/?p=gnutls.git;a=commitdiff;h=f48cb4e387e0b89627310499ce5d80b3063a5ee2

regards,
Nikos




More information about the Gnutls-help mailing list