fix free vs. curl_free