Hi All
I have Client/Server application using openSSSL. Server spin-off threads
to handle each client SSL connection. I get the following memory leak
report when I run valgrind. I think I am shutting down/freeing all the
memory correctly. 

==4127== 4,344,913 bytes in 174,132 blocks are still reachable in loss
record 64 of 64 
==4127==     at        0x4005400: malloc (vg_replace_malloc.c:149)
 ==4127==    by       0x4EBB1D1D: (within /lib/libcrypto.so.0.9.8b)
 ==4127==    by       0x4EBB239E: CRYPTO_malloc (in
/lib/libcrypto.so.0.9.8b) 
==4127==     by       0x4EC04156: sk_new (in /lib/libcrypto.so.0.9.8b) 
==4127==     by       0x4EC041ED: sk_new_null (in
/lib/libcrypto.so.0.9.8b) 
==4127==     by       0x4F052EDD: ssl3_get_client_certificate (in
/lib/libssl.so.0.9.8b) 
==4127==     by      0x4F056094: ssl3_accept (in /lib/libssl.so.0.9.8b)
 ==4127==    by      0x4F06AEB9: SSL_accept (in /lib/libssl.so.0.9.8b)
 ==4127==    by      0x8095117:
ILSCM::SslServerSocket::acceptNewClient() const (SslSocket.cc:828) 
==4127==     by      0x80A05D1:
ILSCM::TcpServerConnection::processSocket(ILSCM::SocketStatus&)
(TcpServerConnection.cc:186)
 ==4127==    by      0x808ECE8:
ILSCM::SocketMonitor::processSocket(void*) (SocketMonitor.cc:257)
 ==4127==    by       0x4E81E3DA: start_thread (in
/lib/libpthread-2.5.so) 
==4127==
 ==4127== LEAK SUMMARY
: ==4127==    definitely lost: 700 bytes in 5 blocks.
 ==4127==     indirectly lost: 100 bytes in 5 blocks
. ==4127==    possibly lost: 384,101 bytes in 7,069 blocks
. ==4127==    still reachable: 5,069,443 bytes in 187,919 blocks. 
==4127==       suppressed: 0 bytes in 0 blocks. 
Does anyone have any thoughts. I do not have a clue here ??? Please
help. 

Thank You
TD





Reply via email to