Skip to content
Snippets Groups Projects
Commit 6b59bc18 authored by Yang Tse's avatar Yang Tse
Browse files

transfer.c: fix loadhostpairs() OOM handling

parent 0a5bbb2a
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment