hello
my sample code gives the foll. memory leaks with the foll. set of function calls... can anybody suggest me what am i missing in my code....
SSLeay_add_ssl_algorithms();
RAND_screen();
meth = SSLv2_client_method();
SSL_load_error_strings();
ctx = SSL_CTX_new (meth);
err = WSAStartup( wVersionRequested, &wsaData );
sd = socket (AF_INET, SOCK_STREAM, 0);
err = connect(sd, (struct sockaddr*) &sa, sizeof(sa));
ssl = SSL_new (ctx);
SSL_set_fd (ssl, sd);
err = SSL_connect (ssl);
err = SSL_write(ssl,buf,strlen(buf));
num = SSL_read(ssl,buf,1);
/* Clean up. */
SSL_shutdown (ssl);
closesocket(sd);
WSACleanup( );
SSL_free (ssl);
SSL_CTX_free (ctx);
ERR_free_strings();
ERR_remove_state(0);
EVP_cleanup();
Detected memory leaks!
Dumping objects ->
{1448} normal block at 0x009C7990, 64 bytes long.
Data: < > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
{1447} normal block at 0x009C7A00, 96 bytes long.
Data: < y 0 ) ) > 90 79 9C 00 30 95 29 00 20 95 29 00 08 00 00 00
{1425} normal block at 0x009C6120, 20 bytes long.
Data: < > 00 00 00 00 AC 06 03 10 00 00 00 00 00 00 00 00
{1424} normal block at 0x009C6160, 16 bytes long.
Data: < a > 20 61 9C 00 00 00 00 00 00 00 00 00 00 00 00 00
{1423} normal block at 0x009C61A0, 20 bytes long.
Data: < `a > 01 00 00 00 60 61 9C 00 00 00 00 00 04 00 00 00
Object dump complete.
thanx
Meenakshi Arora
Software Engineer
Red Creek Communications.
email:[EMAIL PROTECTED]