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
1 changed files with 2 additions and 2 deletions

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;