Title: memory leaks when using SSL functions like SSL_CTX_new(....)

hello
i am getting memory leaks in my code though i am calling the memory free functions.
any ideas??
my sequence is :
SSLeay_add_ssl_algorithms();
RAND_screen();
 WSAStartup(versionRequested,&wsaData))
m_pMethod = SSLv2_client_method();
SSL_CTX_new(m_pMethod))
socket(AF_INET,SOCK_STREAM,IPPROTO_TCP))
......
connect(m_socketDescriptor,(struct sockaddr*)&m_sockAddr,sizeof(sockaddr)))
m_pSSL = SSL_new(m_pSSLContext))
SSL_connect(m_pSSL))
........
// memory free
SSL_shutdown (m_pSSL); 
closesocket(m_socketDescriptor);
SSL_free (m_pSSL);
SSL_CTX_free (m_pSSLContext);
WSACleanup( );
EVP_cleanup();

thanx
Meenakshi Arora

Reply via email to