so do the data->reqdata.current_conn assignment when we know there is an easy
handle existing! Fixes the valgrind report on test 509.
if(CURL_SOCKET_BAD != conn->sock[FIRSTSOCKET])
sclose(conn->sock[FIRSTSOCKET]);
- if (conn->data->reqdata.current_conn == conn) {
- conn->data->reqdata.current_conn = NULL;
- }
Curl_safefree(conn->user);
Curl_safefree(conn->passwd);
Curl_safefree(conn->proxyuser);
}
conn_free(conn);
+ data->reqdata.current_conn = NULL;
return CURLE_OK;
}