Commit 450348d6 authored by Dan Fandrich's avatar Dan Fandrich
Browse files

Fixed a memory leak in the new CURLOPT_USERPWD handling

parent 5928ea9c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
        }