diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2016-02-04 18:11:07 -0500 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2016-02-04 18:11:07 -0500 |
commit | 742deff4dddde519e8928c7b13a66a51e83383f1 (patch) | |
tree | 7b8b403e1aa85454a91b3f67f4ee9847313510fc | |
parent | 20dcd195019a286b97e48ad7491e234dfee99ae1 (diff) |
sasl_sspi: Fix memory leak in domain populate
Free an existing domain before replacing it.
Bug: https://github.com/curl/curl/issues/635
Reported-by: silveja1@users.noreply.github.com
-rw-r--r-- | lib/curl_sasl_sspi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/curl_sasl_sspi.c b/lib/curl_sasl_sspi.c index 1678e3786..787eabfa3 100644 --- a/lib/curl_sasl_sspi.c +++ b/lib/curl_sasl_sspi.c @@ -316,6 +316,7 @@ CURLcode Curl_override_sspi_http_realm(const char *chlg, Curl_unicodefree(domain.tchar_ptr); return CURLE_OUT_OF_MEMORY; } + free(identity->Domain); identity->Domain = dup_domain.tbyte_ptr; identity->DomainLength = curlx_uztoul(_tcslen(dup_domain.tchar_ptr)); dup_domain.tchar_ptr = NULL; |