When I run valgrind (valgrind --leak-check=full --leak-resolution=high -v) I'm getting the following three memory leak errors reported. I believe I am shutting OpenSSL down correctly and freeing all of the memory I get back from these calls. Does anyone have any thoughts or suggestions?

==30637== 268 bytes in 1 blocks are definitely lost in loss record 61 of 78^M
==30637==    at 0x1B9052E4: malloc (vg_replace_malloc.c:130)^M
==30637==    by 0x807A17F: default_malloc_ex (mem.c:79)^M
==30637==    by 0x807A6B4: CRYPTO_malloc (mem.c:304)^M
==30637==    by 0x8084BB6: BUF_MEM_grow (buffer.c:110)^M
==30637==    by 0x809E1CF: X509_NAME_oneline (x509_obj.c:85)^M
==30637==    by 0x8095EC0: x509_cb (x_x509.c:101)^M
==30637==    by 0x80999B1: ASN1_item_ex_d2i (tasn_dec.c:398)^M
==30637==    by 0x8099FFF: ASN1_item_d2i (tasn_dec.c:115)^M
==30637==    by 0x809611A: d2i_X509 (x_x509.c:125)^M
==30637==    by 0x809CFA2: PEM_ASN1_read_bio (pem_oth.c:80)^M
==30637==    by 0x809CF44: PEM_read_bio_X509 (pem_x509.c:68)^M

==30637== 1252 (84 direct, 1168 indirect) bytes in 1 blocks are definitely lost in loss record 68 of 78^M
==30637==    at 0x1B9052E4: malloc (vg_replace_malloc.c:130)^M
==30637==    by 0x807A17F: default_malloc_ex (mem.c:79)^M
==30637==    by 0x807A6B4: CRYPTO_malloc (mem.c:304)^M
==30637==    by 0x8082E59: RSA_new_method (rsa_lib.c:132)^M
==30637==    by 0x80830EC: RSA_new (rsa_lib.c:76)^M
==30637==    by 0x8083684: rsa_cb (rsa_asn1.c:80)^M
==30637==    by 0x8096CC4: asn1_item_ex_combine_new (tasn_new.c:160)^M
==30637==    by 0x8099DEF: ASN1_item_ex_d2i (tasn_dec.c:317)^M
==30637==    by 0x8099FFF: ASN1_item_d2i (tasn_dec.c:115)^M
==30637==    by 0x808374A: d2i_RSAPublicKey (rsa_asn1.c:111)^M
==30637==    by 0x80C7DAF: d2i_PublicKey (d2i_pu.c:93)^M
==30637==    by 0x80C6F07: X509_PUBKEY_get (x_pubkey.c:220)^M

==30637== 3942 (84 direct, 3858 indirect) bytes in 1 blocks are definitely lost in loss record 72 of 78^M
==30637==    at 0x1B9052E4: malloc (vg_replace_malloc.c:130)^M
==30637==    by 0x807A17F: default_malloc_ex (mem.c:79)^M
==30637==    by 0x807A6B4: CRYPTO_malloc (mem.c:304)^M
==30637==    by 0x8096DDB: asn1_item_ex_combine_new (tasn_new.c:170)^M
==30637==    by 0x8099DEF: ASN1_item_ex_d2i (tasn_dec.c:317)^M
==30637==    by 0x8099FFF: ASN1_item_d2i (tasn_dec.c:115)^M
==30637==    by 0x809611A: d2i_X509 (x_x509.c:125)^M
==30637==    by 0x8073B14: ssl3_connect (s3_clnt.c:812)^M
==30637==    by 0x806273F: SSL_connect (ssl_lib.c:825)^M
==30637==    by 0x805F862: ssl23_connect (s23_clnt.c:504)^M
==30637==    by 0x806273F: SSL_connect (ssl_lib.c:825)^M

Thank you in advance!

                          -David-

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to