From e9b4a96975e24ad75167e367d64f33daee887dcd Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sat, 9 Aug 2014 12:34:22 +0100 Subject: 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. --- lib/curl_sasl_sspi.c | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit v1.2.3