[winpr,sspi] fix memory leak in kerberos_InitializeSecurityContextA

This commit is contained in:
akallabeth 2022-12-01 14:00:44 +01:00 committed by David Fort
parent 4033698266
commit 9ca34bc876
1 changed files with 6 additions and 0 deletions

View File

@ -980,6 +980,12 @@ static SECURITY_STATUS SEC_ENTRY kerberos_InitializeSecurityContextA(
cleanup:
{
/* second_ticket is not allocated */
krb5_data edata = { 0 };
in_creds.second_ticket = edata;
krb5_free_cred_contents(context->ctx, &in_creds);
}
if (rv)
kerberos_log_msg(context->ctx, rv);