From: Steve Holme Date: Thu, 30 Jan 2014 20:59:26 +0000 (+0000) Subject: ntlm: Fixed a memory leak when using NTLM with a proxy server X-Git-Tag: curl-7_36_0~257 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97857de80eea0b3028036c6796c2f485f4caf7d9;p=curl ntlm: Fixed a memory leak when using NTLM with a proxy server --- 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 */