Commit c7a9e079 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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

parent 185baf03
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;