corresponding function to the module unload to fix a memory leak.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@46662
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
{
CURL *curl;
- curl_global_init(CURL_GLOBAL_ALL);
curl = curl_easy_init();
if (!curl) {
res |= ast_unregister_application(app);
STANDARD_HANGUP_LOCALUSERS;
+ curl_global_cleanup();
return res;
}
{
int res;
+ curl_global_init(CURL_GLOBAL_ALL);
res = ast_custom_function_register(&acf_curl);
res |= ast_register_application(app, curl_exec, synopsis, descrip);