projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5928ea9
)
Fixed a memory leak in the new CURLOPT_USERPWD handling
author
Dan Fandrich
<dan@coneharvesters.com>
Wed, 8 Oct 2008 20:14:46 +0000
(20:14 +0000)
committer
Dan Fandrich
<dan@coneharvesters.com>
Wed, 8 Oct 2008 20:14:46 +0000
(20:14 +0000)
lib/url.c
patch
|
blob
|
history
diff --git
a/lib/url.c
b/lib/url.c
index
fe32cba
..
cfaab06
100644
(file)
--- 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;
}