Commit 83b82e44 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

memory leak

parent 65dab79c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -753,8 +753,7 @@ static int check_telnet_options(struct connectdata *conn)
     was given on the command line */
  if(conn->bits.user_passwd)
  {
    char *buf = malloc(256);
    sprintf(buf, "USER,%s", conn->user);
    snprintf(option_arg, sizeof(option_arg), "USER,%s", conn->user);
    tn->telnet_vars = curl_slist_append(tn->telnet_vars, buf);

    tn->us_preferred[CURL_TELOPT_NEW_ENVIRON] = CURL_YES;