From 450348d6bd8a9d0fc22eb53f066443b5d0180113 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Wed, 8 Oct 2008 20:14:46 +0000 Subject: Fixed a memory leak in the new CURLOPT_USERPWD handling --- lib/url.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.3