NTLM: fix several NTLM code paths memory leaks
This commit is contained in:
@@ -2523,13 +2523,13 @@ CURLcode Curl_disconnect(struct connectdata *conn, bool dead_connection)
|
||||
data->state.authproxy.want;
|
||||
}
|
||||
|
||||
if(has_host_ntlm || has_proxy_ntlm) {
|
||||
if(has_host_ntlm || has_proxy_ntlm)
|
||||
data->state.authproblem = FALSE;
|
||||
|
||||
Curl_http_ntlm_cleanup(conn);
|
||||
}
|
||||
}
|
||||
|
||||
/* Cleanup NTLM connection-related data */
|
||||
Curl_http_ntlm_cleanup(conn);
|
||||
|
||||
/* Cleanup possible redirect junk */
|
||||
if(data->req.newurl) {
|
||||
free(data->req.newurl);
|
||||
|
||||
Reference in New Issue
Block a user