-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Package: libcurl3 Version: 7.18.2-8lenny4
It's not clear to me but the library appears to leak memory; using the command line tool appears to leak as well. This is on Debian Lenny using the AMD64 port. /** ~ * Compile: g++ -lcurl -o test test.cpp ~ */ #include <curl/curl.h> int main(void) { curl_global_init(CURL_GLOBAL_ALL); CURL * curl = curl_easy_init(); if (curl) { curl_easy_setopt(curl, CURLOPT_URL, "https://www.google.com/"); CURLcode res = curl_easy_perform(curl); if (res != CURLE_OK) { printf("GET unsuccessful.\n"); } curl_easy_cleanup(curl); } curl_global_cleanup(); return 0; } joh...@spike:~/deb$ g++ -lcurl -o test test.cpp joh...@spike:~/deb$ valgrind --leak-check=full ./test . . . . . . ==26948== ERROR SUMMARY: 9 errors from 5 contexts (suppressed: 27 from 2) ==26948== malloc/free: in use at exit: 385 bytes in 9 blocks. ==26948== malloc/free: 2,988 allocs, 2,979 frees, 267,696 bytes allocated. ==26948== For counts of detected errors, rerun with: -v ==26948== searching for pointers to 9 not-freed blocks. ==26948== checked 634,000 bytes. ==26948== ==26948== ==26948== 15 bytes in 1 blocks are definitely lost in loss record 1 of 3 ==26948== at 0x4C2260E: malloc (vg_replace_malloc.c:207) ==26948== by 0x65F08F2: CRYPTO_malloc (in /usr/lib/libcrypto.so.0.9.8) ==26948== by 0x6646883: BUF_strndup (in /usr/lib/libcrypto.so.0.9.8) ==26948== by 0x634C395: ssl3_ctrl (in /usr/lib/libssl.so.0.9.8) ==26948== by 0x4E47576: (within /usr/lib/libcurl.so.4.1.0) ==26948== by 0x4E47824: (within /usr/lib/libcurl.so.4.1.0) ==26948== by 0x4E37E0B: (within /usr/lib/libcurl.so.4.1.0) ==26948== by 0x4E3E101: (within /usr/lib/libcurl.so.4.1.0) ==26948== by 0x4E40B74: (within /usr/lib/libcurl.so.4.1.0) ==26948== by 0x4E4E80A: (within /usr/lib/libcurl.so.4.1.0) ==26948== by 0x40090E: main (in /home/johnny/deb/test) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkwNdaEACgkQg7TIS7A9iscaswCeJyplaJpW1XRlbAf+Pd7XhKfF OQ4AnAzjEMP+7TgsWtlbRpGUbIW4Orzc =1rKe -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org