/* curl_easy_cleanup() is the external interface to cleaning/freeing the given easy handle.  */
void curl_easy_cleanup(struct Curl_easy *data)
/* curl_easy_cleanup() is the external interface to cleaning/freeing the given easy handle.  */
void curl_easy_cleanup(struct Curl_easy *data)
{
  SIGPIPE_VARIABLE(pipe_st);
  if(!data)
    return;
  sigpipe_ignore(data, &pipe_st);
  Curl_close(data);
  sigpipe_restore(&pipe_st);
}