Commit 85174ed3 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

memory leak adjusts

parent 111d1d09
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -722,6 +722,7 @@ CURLcode curl_transfer(CURL *curl)
        /* TBD: set the URL with curl_setopt() */
        data->url = data->newurl;
        data->newurl = NULL; /* don't show! */
        data->bits.urlstringalloc = TRUE; /* the URL is allocated */

        /* Disable both types of POSTs, since doing a second POST when
           following isn't what anyone would want! */
+2 −1
Original line number Diff line number Diff line
@@ -254,7 +254,8 @@ CURLcode http_done(struct connectdata *conn)
    *bytecount = http->readbytecount + http->writebytecount;
  }

  /* TBD: the HTTP struct remains allocated here */
  free(http);
  data->proto.http=NULL; /* it is gone */

  return CURLE_OK;
}
+4 −2
Original line number Diff line number Diff line
@@ -304,16 +304,18 @@ struct Configbits {
  bool mute;
  bool no_body;
  bool proxy_user_passwd;
  bool proxystringalloc; /* the http proxy string is malloc()'ed */
  bool set_port;
  bool set_range;
  bool rangestringalloc; /* the range string is malloc()'ed */
  bool upload;
  bool use_netrc;
  bool user_passwd;
  bool verbose;
  bool this_is_a_follow; /* this is a followed Location: request */
  bool krb4; /* kerberos4 connection requested */

  bool proxystringalloc; /* the http proxy string is malloc()'ed */
  bool rangestringalloc; /* the range string is malloc()'ed */
  bool urlstringalloc;   /* the URL string is malloc()'ed */
};

/* What type of interface that intiated this struct */