mirror of
https://github.com/curl/curl.git
synced 2026-04-17 16:01:40 +03:00
transfer.c: fix loadhostpairs() OOM handling
This commit is contained in:
parent
0a5bbb2ac1
commit
6b59bc1805
1 changed files with 3 additions and 1 deletions
|
|
@ -1437,8 +1437,10 @@ static CURLcode loadhostpairs(struct SessionHandle *data)
|
|||
if(data->share)
|
||||
Curl_share_unlock(data, CURL_LOCK_DATA_DNS);
|
||||
|
||||
if(!dns)
|
||||
if(!dns) {
|
||||
Curl_freeaddrinfo(addr);
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
}
|
||||
}
|
||||
data->change.resolve = NULL; /* dealt with now */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue