curl_easy_init(3) - Linux man page
Name
curl_easy_init - Start a libcurl easy sessionSynopsis
#include <curl/curl.h>CURL *curl_easy_init( );
Description
If you did not already call curl_global_init(3), curl_easy_init(3) does it automatically. This may be lethal in multi-threaded cases, since curl_global_init(3) is not thread-safe, and it may result in resource problems because there is no corresponding cleanup.
You are strongly advised to not allow this automatic behaviour, by calling curl_global_init(3) yourself properly. See the description in libcurl(3) of global environment requirements for details of how to use this function.