diff options
author | Daniel Stenberg <daniel@haxx.se> | 2013-08-03 00:03:52 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2013-08-03 22:51:35 +0200 |
commit | 784336deec2a674fc2ed8fe6f4af65ecf0cb8f35 (patch) | |
tree | b92cb558649e292973c4b1d1171b4356409f1800 /lib/url.c | |
parent | eb41e8eebef1a308157fbbd171919dba28a1eca2 (diff) |
multi: remove data->state.current_conn struct field
Not needed
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -2605,7 +2605,7 @@ CURLcode Curl_disconnect(struct connectdata *conn, bool dead_connection) } conn_free(conn); - data->state.current_conn = NULL; + Curl_speedinit(data); return CURLE_OK; @@ -5865,9 +5865,7 @@ CURLcode Curl_do_more(struct connectdata *conn, bool *completed) void Curl_reset_reqproto(struct connectdata *conn) { struct SessionHandle *data = conn->data; - if(data->state.proto.generic && data->state.current_conn != conn) { - free(data->state.proto.generic); - data->state.proto.generic = NULL; - } - data->state.current_conn = conn; + + Curl_safefree(data->state.proto.generic); + data->state.proto.generic = NULL; } |