Hi all

I use libcsoap 1.1.0 library, to call some HTTP/HTTPS web services.
libcsoap in turn uses OpenSSL for authenticating the secure sessions
(HTTPS).

Both HTTP and HTTPS web service are functioning well and I get the proper
response in both cases.
But I found many memory leaks when I try to call HTTPS web service (which
involve OpenSSL library underneath).

For better clarification,  I have attached the trace of Valgrind on the
Pastebin:
http://pastebin.com/f1e222abd
Here is the last lines....

   1. ==3290== LEAK SUMMARY:
   2. ==3290==    definitely lost: 268 bytes in 1 blocks.
   3. ==3290==    indirectly lost: 66,807 bytes in 23 blocks.
   *********************!!!!
   4. ==3290==      possibly lost: 0 bytes in 0 blocks.
   5. ==3290==    still reachable: 2,536 bytes in 118 blocks.
   6. ==3290==         suppressed: 0 bytes in 0 blocks.

Above is the leak for per HTTPS request/response,
On each succeeding request/response, leaks on line 2, 3 and 4 get
incremented, only 4th leak -- still rechable -- remain as it is.

I checked libcsoap library thoroughly, at the end it call the below two
function for clean up any used memory, they are in sequence:
*SSL_shutdown(sock->ssl)
**SSL_free(sock->ssl)

*Even though the leak is present and detected in valgrind.*
*Is there any solution or work around for solving this leak.
On searching the net i found to configure/compile openssl with -DPURIFY
option. but it didn't worked.

My system is Fedora 8,
And OpenSSL Library version is 0.9.8b
I also tried the latest openssl 1.0.0 Beta1, the same memory leaks comes
there.


Thanks
msp

Reply via email to