mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05: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) {
|
||||
ai = Curl_he2ai(h, port);
|
||||
|
||||
if (h == buf) /* used a *_r() function */
|
||||
free(h);
|
||||
if (buf) /* used a *_r() function */
|
||||
free(buf);
|
||||
}
|
||||
|
||||
return ai;
|
||||
|
Loading…
Reference in New Issue
Block a user