mirror of
https://github.com/curl/curl.git
synced 2026-06-02 01:04:15 +03:00
oauth2: Fixed a memory leak in an OOM condition
This commit is contained in:
parent
f00899d73e
commit
1a20f59237
1 changed files with 2 additions and 1 deletions
|
|
@ -5176,7 +5176,8 @@ static CURLcode create_conn(struct SessionHandle *data,
|
|||
if(data->set.str[STRING_BEARER]) {
|
||||
conn->xoauth2_bearer = strdup(data->set.str[STRING_BEARER]);
|
||||
if(!conn->xoauth2_bearer) {
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
result = CURLE_OUT_OF_MEMORY;
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue