mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
simplified the check for when to free() the buf data
This commit is contained in:
parent
185baf036b
commit
c7a9e07909
@ -362,8 +362,8 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
|
|||||||
if(h) {
|
if(h) {
|
||||||
ai = Curl_he2ai(h, port);
|
ai = Curl_he2ai(h, port);
|
||||||
|
|
||||||
if (h == buf) /* used a *_r() function */
|
if (buf) /* used a *_r() function */
|
||||||
free(h);
|
free(buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ai;
|
return ai;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user