Skip to content
Snippets Groups Projects
Commit c7a9e079 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

simplified the check for when to free() the buf data

parent 185baf03
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment