1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

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.
This commit is contained in:
Steve Holme 2014-08-09 12:34:22 +01:00
parent 37f0e8a32c
commit e9b4a96975

View File

@ -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)