diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-08-09 12:34:22 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-08-09 12:34:22 +0100 |
commit | e9b4a96975e24ad75167e367d64f33daee887dcd (patch) | |
tree | f051fd51ff259c843b72b718a52841bf8cd1197e | |
parent | 37f0e8a32cf9ad0a87f8c60cfa12b65e61be15a9 (diff) |
sasl_sspi: Fixed memory leak with not releasing Package Info struct
Curl_sasl_create_digest_md5_message() wouldn't free the Package Info
structure after QuerySecurityPackageInfo() had allocated it.
-rw-r--r-- | lib/curl_sasl_sspi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/curl_sasl_sspi.c b/lib/curl_sasl_sspi.c index 0135d308e..8f6c22591 100644 --- a/lib/curl_sasl_sspi.c +++ b/lib/curl_sasl_sspi.c @@ -110,6 +110,9 @@ CURLcode Curl_sasl_create_digest_md5_message(struct SessionHandle *data, return CURLE_NOT_BUILT_IN; } + /* Release the package buffer as it is not required anymore */ + s_pSecFn->FreeContextBuffer(SecurityPackage); + /* Calculate our SPN */ spn = aprintf("%s/%s", service, data->easy_conn->host.name); if(!spn) |