mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31:41 +03:00
lib: move request specific allocations to the request struct
To make it clearer that they are ephemeral. Closes #21301
This commit is contained in:
parent
7a349b5eed
commit
3512b673dd
13 changed files with 37 additions and 43 deletions
10
lib/rtsp.c
10
lib/rtsp.c
|
|
@ -453,9 +453,9 @@ static CURLcode rtsp_do(struct Curl_easy *data, bool *done)
|
|||
goto out;
|
||||
|
||||
#ifndef CURL_DISABLE_PROXY
|
||||
p_proxyuserpwd = data->state.aptr.proxyuserpwd;
|
||||
p_proxyuserpwd = data->req.proxyuserpwd;
|
||||
#endif
|
||||
p_userpwd = data->state.aptr.userpwd;
|
||||
p_userpwd = data->req.userpwd;
|
||||
|
||||
/* Referrer */
|
||||
curlx_safefree(data->state.aptr.ref);
|
||||
|
|
@ -538,12 +538,6 @@ static CURLcode rtsp_do(struct Curl_easy *data, bool *done)
|
|||
p_proxyuserpwd ? p_proxyuserpwd : "",
|
||||
p_userpwd ? p_userpwd : "");
|
||||
|
||||
/*
|
||||
* Free userpwd now --- cannot reuse this for Negotiate and possibly NTLM
|
||||
* with basic and digest, it will be freed anyway by the next request
|
||||
*/
|
||||
curlx_safefree(data->state.aptr.userpwd);
|
||||
|
||||
if(result)
|
||||
goto out;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue