diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2014-01-28 23:55:04 +0100 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2014-01-28 23:55:04 +0100 |
commit | 1a20f592376cc0071505e935db35d75b08fb35aa (patch) | |
tree | 67e74f2d8c1dbdd37658e2603013823ba1cbb13c | |
parent | f00899d73e3537982b16d994452a4bc21ff4ff3f (diff) |
oauth2: Fixed a memory leak in an OOM condition
-rw-r--r-- | lib/url.c | 3 |
1 files changed, 2 insertions, 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; } } |