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

when using PORT, we now free the host name buffer properly

parent c1474b95
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -774,6 +774,9 @@ CURLcode _ftp(struct connectdata *conn)
        free(hostdataptr);
        return CURLE_FTP_PORT_FAILED;
      }
      if(hostdataptr)
        /* free the memory used for name lookup */
        free(hostdataptr);
    }
    else {
      failf(data, "could't find my own IP address (%s)", myhost);