cURL / Mailing Lists / curl-library / Single Mail


Memory leak in curl to support HTTPS

From: Guo, Jerry (NSN - CN/Cheng Du) <>
Date: Thu, 17 Dec 2009 17:23:22 +0800


Sorry for last mail top-posting. I'm a newbie in curl world :)

There is a memory leak in curl 7.19.7 when I use it to do some HTTPS
connection with an HTTPS server. The openssl version is 0.9.7a.

The call-stack is :

 ==1041== 6,682 (460 direct, 6,222 indirect) bytes in 1 blocks are
definitely lost in loss record 364 of 364
 ==1041== at 0x4C8FA36: malloc (vg_replace_malloc.c:195)
 ==1041== by 0xB6FC4BD: ??? (in /lib/
 ==1041== by 0xB6FCA6E: CRYPTO_malloc (in /lib/
 ==1041== by 0xA910243: SSL_SESSION_new (in /lib/
 ==1041== by 0xA910C14: ssl_get_new_session (in
 ==1041== by 0xA909CA4: ssl23_connect (in /lib/
 ==1041== by 0xA90E03C: SSL_connect (in /lib/
 ==1041== by 0xA338555: ossl_connect_common (in
 ==1041== by 0xA339372: Curl_ossl_connect (in
 ==1041== by 0xA3270D7: Curl_ssl_connect (in
 ==1041== by 0xA32D8F6: Curl_http_connect (in
 ==1041== by 0xA332718: Curl_protocol_connect (in


Guo Jingrui

List admin:
List admin:
Received on 2009-12-17