Use curl_global_init() and curl_global_cleanup().

Improve cleanup in case of initialization failure.
This commit is contained in:
Yang Tse
2006-10-25 05:59:46 +00:00
parent f44ef427a2
commit 384c8f3560
29 changed files with 899 additions and 421 deletions

View File

@@ -43,6 +43,8 @@ int test(char *URL)
}
else
rc = 4;
curl_global_cleanup();
}
else
rc = 5;