"%" MAX_CURL_PASSWORD_LENGTH_TXT "[^@]",
user, passwd))) {
/* found user and password, rip them out */
- if(conn->proxyuser)
- free(conn->proxyuser);
+ Curl_safefree(conn->proxyuser);
conn->proxyuser = strdup(user);
if(!conn->proxyuser)
return CURLE_OUT_OF_MEMORY;
- if(conn->proxypasswd)
- free(conn->proxypasswd);
+ Curl_safefree(conn->proxypasswd);
conn->proxypasswd = strdup(passwd);
if(!conn->proxypasswd)
free(old_conn->user);
free(old_conn->passwd);
- free(old_conn->proxyuser);
- free(old_conn->proxypasswd);
+ Curl_safefree(old_conn->proxyuser);
+ Curl_safefree(old_conn->proxypasswd);
free(old_conn); /* we don't need this anymore */