From 84ed5e755ab1e16f0d7a9923e7f63b8337128960 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 11 Aug 2003 12:30:21 +0000 Subject: use safefree instead --- lib/url.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/url.c b/lib/url.c index 9fd1ce576..76331aac9 100644 --- a/lib/url.c +++ b/lib/url.c @@ -2290,15 +2290,13 @@ static CURLcode CreateConnection(struct SessionHandle *data, "%" 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) @@ -2882,8 +2880,8 @@ static CURLcode CreateConnection(struct SessionHandle *data, 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 */ -- cgit v1.2.3