mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 16:48:49 -05:00
parent
1060955a61
commit
c0f0e400e0
@ -1255,8 +1255,7 @@ CURLUcode curl_url_set(CURLU *u, CURLUPart what,
|
|||||||
return CURLUE_UNKNOWN_PART;
|
return CURLUE_UNKNOWN_PART;
|
||||||
}
|
}
|
||||||
if(storep && *storep) {
|
if(storep && *storep) {
|
||||||
free(*storep);
|
Curl_safefree(*storep);
|
||||||
*storep = NULL;
|
|
||||||
}
|
}
|
||||||
return CURLUE_OK;
|
return CURLUE_OK;
|
||||||
}
|
}
|
||||||
@ -1284,8 +1283,7 @@ CURLUcode curl_url_set(CURLU *u, CURLUPart what,
|
|||||||
break;
|
break;
|
||||||
case CURLUPART_HOST:
|
case CURLUPART_HOST:
|
||||||
storep = &u->host;
|
storep = &u->host;
|
||||||
free(u->zoneid);
|
Curl_safefree(u->zoneid);
|
||||||
u->zoneid = NULL;
|
|
||||||
break;
|
break;
|
||||||
case CURLUPART_ZONEID:
|
case CURLUPART_ZONEID:
|
||||||
storep = &u->zoneid;
|
storep = &u->zoneid;
|
||||||
|
Loading…
Reference in New Issue
Block a user