cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Memory leak in a libcurl with mbedtls

From: Mindaugas Jaraminas <minde.j_at_gmail.com>
Date: Fri, 18 Mar 2016 16:10:34 +0200

Here full libs with debugging symbols

==6074==
==6074== HEAP SUMMARY:
==6074== in use at exit: 1,520 bytes in 10 blocks
==6074== total heap usage: 21,163 allocs, 21,153 frees, 2,050,915 bytes
allocated
==6074==
==6074== 24 bytes in 1 blocks are definitely lost in loss record 2 of 10
==6074== at 0x4C2CC70: calloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6074== by 0x506D4CD: ssl_append_key_cert (ssl_tls.c:5698)
==6074== by 0x506D586: mbedtls_ssl_conf_own_cert (ssl_tls.c:5726)
==6074== by 0x41258A: mbedtls_connect_step1 (mbedtls.c:373)
==6074== by 0x413170: mbedtls_connect_common (mbedtls.c:722)
==6074== by 0x4133EE: Curl_mbedtls_connect_nonblocking (mbedtls.c:811)
==6074== by 0x4108B0: Curl_ssl_connect_nonblocking (vtls.c:322)
==6074== by 0x41A7C5: https_connecting (http.c:1386)
==6074== by 0x41A723: Curl_http_connect (http.c:1356)
==6074== by 0x42A8D6: Curl_protocol_connect (url.c:3668)
==6074== by 0x4088F8: multi_runsingle (multi.c:1264)
==6074== by 0x409A1D: curl_multi_perform (multi.c:1821)
==6074==
==6074== 1,496 (336 direct, 1,160 indirect) bytes in 1 blocks are
definitely lost in loss record 10 of 10
==6074== at 0x4C2CC70: calloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6074== by 0x54CFD64: rsa_alloc_wrap (pk_wrap.c:136)
==6074== by 0x54CF3E8: mbedtls_pk_setup (pk.c:106)
==6074== by 0x54D3A10: mbedtls_pk_parse_key (pkparse.c:1087)
==6074== by 0x54D1FFF: mbedtls_pk_parse_keyfile (pkparse.c:132)
==6074== by 0x412009: mbedtls_connect_step1 (mbedtls.c:269)
==6074== by 0x413170: mbedtls_connect_common (mbedtls.c:722)
==6074== by 0x4133EE: Curl_mbedtls_connect_nonblocking (mbedtls.c:811)
==6074== by 0x4108B0: Curl_ssl_connect_nonblocking (vtls.c:322)
==6074== by 0x41A7C5: https_connecting (http.c:1386)
==6074== by 0x41A723: Curl_http_connect (http.c:1356)
==6074== by 0x42A8D6: Curl_protocol_connect (url.c:3668)
==6074==
==6074== LEAK SUMMARY:
==6074== definitely lost: 360 bytes in 2 blocks
==6074== indirectly lost: 1,160 bytes in 8 blocks
==6074== possibly lost: 0 bytes in 0 blocks
==6074== still reachable: 0 bytes in 0 blocks
==6074== suppressed: 0 bytes in 0 blocks
==6074==
==6074== For counts of detected and suppressed errors, rerun with: -v
==6074== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-03-18