title: valgrind detects memory leaks when using libcurl (no ssl)
body: <p>In my C program I use some basic functions of libcurl. Today I ran valgrind in order to check if I have memory leaks and valgrind went crazy reporting multiple errors.</p>
  
  <p>I tracked it basically down to:</p>
  
  <pre><code>CURL *curl;
  CURLcode res;
  
  curl = curl_easy_init();
  // ...
  curl_easy_cleanup(curl);
  </code></pre>
  
  <p>If I remove the code that uses libcurl completely, valgrind doesnt report any errors. </p>
  
  <p>I already read that there are some problems using valgrind with libcurl and ssl, but I dont fetch any https urls or the like. </p>
  
  <p>What can I do? Can I make valgrind shut up about libcurl errors (possible false positives?) and report only errors from my code? Due to the huge amount of errors despite most simple usage of libcurl the output of valgrind is quite confusing.</p>
  
  <p>Unfortunately I dont have a debug built of libcurl installed, so valgrind doesnt even report the line numbers/files where it deteced the leaks. The error messages look like:</p>
  
  <pre><code>==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: ???
  ...
  </code></pre>