1
0
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:
Daniel Stenberg 2004-06-30 11:32:16 +00:00
parent 185baf036b
commit c7a9e07909

View File

@ -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;