From: Dan Fandrich Date: Wed, 8 Oct 2008 20:14:46 +0000 (+0000) Subject: Fixed a memory leak in the new CURLOPT_USERPWD handling X-Git-Tag: curl-7_19_1~208 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=450348d6bd8a9d0fc22eb53f066443b5d0180113;p=curl Fixed a memory leak in the new CURLOPT_USERPWD handling --- diff --git a/lib/url.c b/lib/url.c index fe32cba77..cfaab0601 100644 --- a/lib/url.c +++ b/lib/url.c @@ -1520,6 +1520,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, else { memcpy(p, userpwd, username_len); p[username_len] = '\0'; + Curl_safefree(data->set.str[STRING_USERNAME]); data->set.str[STRING_USERNAME] = p; }