aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-01-30 20:59:26 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-01-30 20:59:26 +0000
commit97857de80eea0b3028036c6796c2f485f4caf7d9 (patch)
tree1a09b8cd418ad28d8f6c49502bea77a26dae0c90 /lib
parent784f225266c9abac6557256df3217280662e345b (diff)
ntlm: Fixed a memory leak when using NTLM with a proxy server
Diffstat (limited to 'lib')
-rw-r--r--lib/curl_ntlm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/curl_ntlm.c b/lib/curl_ntlm.c
index 0995eab27..8c02aba5d 100644
--- a/lib/curl_ntlm.c
+++ b/lib/curl_ntlm.c
@@ -239,8 +239,10 @@ void Curl_http_ntlm_cleanup(struct connectdata *conn)
#ifndef USE_WINDOWS_SSPI
Curl_safefree(conn->ntlm.target_info);
conn->ntlm.target_info_len = 0;
-#endif
+ Curl_safefree(conn->proxyntlm.target_info);
+ conn->proxyntlm.target_info_len = 0;
+#endif
}
#endif /* USE_NTLM */