mirror of
https://github.com/curl/curl.git
synced 2026-04-23 12:52:12 +03: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:
parent
37f0e8a32c
commit
e9b4a96975
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue