aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/transfer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 2f4b69cf8..def0e6ade 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -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 */