NTLM: fix several NTLM code paths memory leaks

This commit is contained in:
Yang Tse
2013-03-24 04:47:57 +01:00
parent 8ec2cb5544
commit acafe9c160
3 changed files with 16 additions and 13 deletions

View File

@@ -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);