mirror of
https://github.com/curl/curl.git
synced 2026-08-24 15:23:36 +03:00
parent
1060955a61
commit
c0f0e400e0
1 changed files with 2 additions and 4 deletions
|
|
@ -1255,8 +1255,7 @@ CURLUcode curl_url_set(CURLU *u, CURLUPart what,
|
|||
return CURLUE_UNKNOWN_PART;
|
||||
}
|
||||
if(storep && *storep) {
|
||||
free(*storep);
|
||||
*storep = NULL;
|
||||
Curl_safefree(*storep);
|
||||
}
|
||||
return CURLUE_OK;
|
||||
}
|
||||
|
|
@ -1284,8 +1283,7 @@ CURLUcode curl_url_set(CURLU *u, CURLUPart what,
|
|||
break;
|
||||
case CURLUPART_HOST:
|
||||
storep = &u->host;
|
||||
free(u->zoneid);
|
||||
u->zoneid = NULL;
|
||||
Curl_safefree(u->zoneid);
|
||||
break;
|
||||
case CURLUPART_ZONEID:
|
||||
storep = &u->zoneid;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue