Hi Again, I just went through FAQ and found out that if I call EVP_cleanup() then the identified leaks go away but now when I call
int nVal = PKCS12_parse(pPKCS12, "password", &pPrivateKey, &pSignerCert, &pskSignerCertChain); if(nVal == PKCS12_ERROR) { cout<<"Error Parsing PKCS12"<<endl; } if(buffer) delete[] buffer; if(pPrivateKey) EVP_PKEY_free(pPrivateKey); if(pSignerCert) X509_free(pSignerCert); if(pPKCS12) PKCS12_free(pPKCS12); if(pskSignerCertChain) sk_X509_free(pskSignerCertChain); //ERR_remove_state() EVP_cleanup(); ERR_free_strings(); CRYPTO_cleanup_all_ex_data();, There is a list of memory leaks please let me know what I am doing wrong or point me to some existing post or documentation. Regards, Muhammad Aftab Alam. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aftab Alam Sent: Friday, April 15, 2005 3:03 PM To: openssl-users@openssl.org Subject: SSLeay_add_all_algorithms usage problem? Hi All, I am writing a function in which I am calling these lines void Func() { SSLeay_add_all_algorithms(); ERR_load_crypto_strings(); // Now just free this. ERR_free_strings(); CRYPTO_cleanup_all_ex_data(); // I don't know if it can do the thing. } At the end of execution I am informed from compiler about a long list of memory leaks I want to know that is to be done to free SSLeay_add_all_algorithms(); Regards, Muhammad Aftab Alam ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]