Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- valgrind detects memory leaks when using libcurl (no ssl)
- CURL *curl;
- CURLcode res;
- curl = curl_easy_init();
- // ...
- curl_easy_cleanup(curl);
- ==27330==
- ==27330== HEAP SUMMARY:
- ==27330== in use at exit: 34,960 bytes in 2,406 blocks
- ==27330== total heap usage: 20,130 allocs, 17,724 frees, 2,511,576 bytes allocated
- ==27330==
- ==27330== 40 (20 direct, 20 indirect) bytes in 1 blocks are definitely lost in loss record 383 of 445
- ==27330== at 0x4025BD3: malloc (vg_replace_malloc.c:236)
- ==27330== by 0x4B173FD: ???
- ==27330== by 0x4B17A8B: ???
- ==27330== by 0x4B84957: ???
- ==27330== by 0x4B849FD: ???
- ==27330== by 0x4B72814: ???
- ==27330== by 0x4B734C1: ???
- ==27330== by 0x4B78DE2: ???
- ==27330== by 0x4B7524B: ???
- ==27330== by 0x49B2F76: ???
- ==27330== by 0x49C9ECB: ???
- ==27330== by 0x49BC96A: ???
- ...
Add Comment
Please, Sign In to add comment