curl_easy_cleanup - End a libcurl easy handle. This function must be the last function to call for an easy session. It is the opposite of the curl_easy_init function and must be called with the same handle as input that a curl_easy_init call returned.
#include void curl_easy_cleanup(CURL * handle );
#include CURL *curl = curl_easy_init(); if(curl) { CURLcode res; curl_easy_setopt(curl, CURLOPT_URL, "http://example.com"); res = curl_easy_perform(curl); /* Ends the libcurl easy handle */ curl_easy_cleanup(curl); }
http://curl.haxx.se/libcurl/c/curl_easy_cleanup.html