mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 00:28:48 -05:00
Merge branch 'master' of https://github.com/bagder/curl
This commit is contained in:
commit
833fba265d
@ -149,11 +149,11 @@ int test(char *URL)
|
|||||||
{
|
{
|
||||||
int res;
|
int res;
|
||||||
CURLSHcode scode = CURLSHE_OK;
|
CURLSHcode scode = CURLSHE_OK;
|
||||||
char *url;
|
char *url = NULL;
|
||||||
struct Tdata tdata;
|
struct Tdata tdata;
|
||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLSH *share;
|
CURLSH *share;
|
||||||
struct curl_slist *headers;
|
struct curl_slist *headers = NULL;
|
||||||
int i;
|
int i;
|
||||||
struct userdata user;
|
struct userdata user;
|
||||||
|
|
||||||
@ -286,8 +286,11 @@ test_cleanup:
|
|||||||
/* clean up last handle */
|
/* clean up last handle */
|
||||||
printf( "CLEANUP\n" );
|
printf( "CLEANUP\n" );
|
||||||
curl_easy_cleanup( curl );
|
curl_easy_cleanup( curl );
|
||||||
|
|
||||||
|
if ( headers )
|
||||||
curl_slist_free_all( headers );
|
curl_slist_free_all( headers );
|
||||||
|
|
||||||
|
if ( url )
|
||||||
curl_free(url);
|
curl_free(url);
|
||||||
|
|
||||||
/* free share */
|
/* free share */
|
||||||
|
Loading…
Reference in New Issue
Block a user