aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2013-03-24 04:47:57 +0100
committerYang Tse <yangsita@gmail.com>2013-03-25 03:32:47 +0100
commitacafe9c160e6c299d48d72ab93fdb7abfcbf3ed2 (patch)
treec3b87a727a0360917dc545b631cfab43b0aed623 /lib/url.c
parent8ec2cb5544b86306b702484ea785b6b9596562ab (diff)
NTLM: fix several NTLM code paths memory leaks
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/url.c b/lib/url.c
index e401ca363..8c8f8b07c 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -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);