daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest Aug 18th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. valgrind detects memory leaks when using libcurl (no ssl)
  2. CURL *curl;
  3. CURLcode res;
  4.  
  5. curl = curl_easy_init();
  6. // ...
  7. curl_easy_cleanup(curl);
  8.    
  9. ==27330==
  10. ==27330== HEAP SUMMARY:
  11. ==27330==     in use at exit: 34,960 bytes in 2,406 blocks
  12. ==27330==   total heap usage: 20,130 allocs, 17,724 frees, 2,511,576 bytes allocated
  13. ==27330==
  14. ==27330== 40 (20 direct, 20 indirect) bytes in 1 blocks are definitely lost in loss record 383 of 445
  15. ==27330==    at 0x4025BD3: malloc (vg_replace_malloc.c:236)
  16. ==27330==    by 0x4B173FD: ???
  17. ==27330==    by 0x4B17A8B: ???
  18. ==27330==    by 0x4B84957: ???
  19. ==27330==    by 0x4B849FD: ???
  20. ==27330==    by 0x4B72814: ???
  21. ==27330==    by 0x4B734C1: ???
  22. ==27330==    by 0x4B78DE2: ???
  23. ==27330==    by 0x4B7524B: ???
  24. ==27330==    by 0x49B2F76: ???
  25. ==27330==    by 0x49C9ECB: ???
  26. ==27330==    by 0x49BC96A: ???
  27. ...
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top