Hi,

I am using dmalloc and "#define LEVITTE" to clean up my C code.

It reveals, that PKCS7_verify() allocates a lot of memory chunks, which are not 
freed:
I tracked it down to the two functions
-> X509_STORE_CTX_set_default()
-> X509_verify_cert()

All the variables are freed, so it is a leakage or usage error?

---
    if (PKCS7_verify(p7, other, store, indata, out, PKCS7_BINARY)) {
        sp("Verification successful");
    }
    ret = bio2string(out); // convert BIO to string
    if (debugging()) {
        ERR_print_errors(bio_err);
    }
    sk_X509_pop_free(other, X509_free);
    X509_STORE_free(store);
    PKCS7_free(p7);
    BIO_free(in);
    BIO_free(indata);
    BIO_free_all(out);
    //
    EVP_cleanup(); // OpenSSL_add_all_algorithms();
---

Thank you.

Greetings,
Alexander

--
Deutsche Telekom AG
Seamless ICT Security Infrastructure & Management
im Auftrag T-Systems International GmbH
Dipl. Inf Alexander Elgert
Langwadener Strasse 17
64625 Bensheim
+49 176 22 717 661 (Mobil)
+49 671 83419-12 (Tel)
+49 671 83419-30 (Fax)
E-Mail: [email protected]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]

Reply via email to