aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-31 16:02:51 +0000
committerroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-31 16:02:51 +0000
commit43959ca99655ed63d55c650d94e12635fad5eda3 (patch)
treee188f083e4f772ebfca81cb74862a6ccbd98cff6 /apps
parent37af263af7e0361d3ca0b7a242f8fbbb433bee33 (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@46680 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_curl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_curl.c b/apps/app_curl.c
index 5cf4b167d..93fdd7ff0 100644
--- a/apps/app_curl.c
+++ b/apps/app_curl.c
@@ -94,7 +94,6 @@ static int curl_internal(struct MemoryStruct *chunk, char *url, char *post)
{
CURL *curl;
- curl_global_init(CURL_GLOBAL_ALL);
curl = curl_easy_init();
if (!curl) {
@@ -224,6 +223,7 @@ int unload_module(void)
res |= ast_unregister_application(app);
STANDARD_HANGUP_LOCALUSERS;
+ curl_global_cleanup();
return res;
}
@@ -232,6 +232,7 @@ int load_module(void)
{
int res;
+ curl_global_init(CURL_GLOBAL_ALL);
res = ast_custom_function_register(&acf_curl);
res |= ast_register_application(app, curl_exec, synopsis, descrip);