diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-10-21 23:50:13 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-10-23 11:43:41 +0200 |
commit | ca10fae6fc0131476b79b293e8d7087455c04ead (patch) | |
tree | c2d871286373b942d205d1fd90cd410600edaea0 /lib | |
parent | 06d8f16b87208abc6dfde1341e992e0811c31fda (diff) |
Curl_follow: remove remaining free(newurl)
Follow-up to 05564e750e8f0c. This function no longer frees the passed-in
URL.
Reported-by: Michael Kaufmann
Bug: https://github.com/curl/curl/commit/05564e750e8f0c79016c680f301ce251e6e86155#commitcomm
ent-30985666
Diffstat (limited to 'lib')
-rw-r--r-- | lib/transfer.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index deb0ec786..e6d98cfa4 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -1502,10 +1502,8 @@ CURLcode Curl_follow(struct Curl_easy *data, } data->change.referer = strdup(data->change.url); - if(!data->change.referer) { - free(newurl); + if(!data->change.referer) return CURLE_OUT_OF_MEMORY; - } data->change.referer_alloc = TRUE; /* yes, free this later */ } } |