but it shows good manner to always cleanup
*/
CURLcode main_init(void)
{
+ curl_global_init();
return win32_init();
}
void main_free(void)
{
win32_cleanup();
+ curl_global_cleanup();
}
int SetHTTPrequest(HttpReq req, HttpReq *store)
curl_memdebug("memdump");
#endif
- main_init(); /* inits winsock crap for windows */
+ main_init(); /* inits */
config->showerror=TRUE;
config->conf=CONF_DEFAULT;
/* cleanup the curl handle! */
curl_easy_cleanup(curl);
- main_free(); /* cleanup the winsock stuff for windows */
+ main_free(); /* cleanup */
return res;
}