[PATCH] Little leak fix

Colin Leroy colin at colino.net
Fri Jul 4 14:07:11 CEST 2008


Hello,

I've found out this via valgrind:

==5806== 7,698 (504 direct, 7,194 indirect) bytes in 9 blocks are 
         definitely lost in loss record 175 of 248
==5806==    at 0x4C220BC: calloc (vg_replace_malloc.c:397)
==5806==    by 0xED2FE11: _asn1_add_node_only (structure.c:54)
==5806==    by 0xED2FFF2: _asn1_copy_structure3 (structure.c:398)
==5806==    by 0xED3038D: asn1_create_element (structure.c:690)
==5806==    by 0x9733F7A: _gnutls_x509_decode_octet_string (common.c:832)
==5806==    by 0x9734243: _gnutls_x509_read_value (common.c:912)
==5806==    by 0x974756E: _decode_pkcs12_auth_safe (pkcs12.c:76)
==5806==    by 0x9748A67: gnutls_pkcs12_get_bag (pkcs12.c:598)

Attached is a patch which fixes it.

HTH,
-- 
Colin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lib_x509_common_leak.patch
Type: text/x-patch
Size: 284 bytes
Desc: not available
URL: </pipermail/attachments/20080704/4f88146d/attachment.bin>


More information about the Gnutls-devel mailing list