mirror of https://github.com/FreeRDP/FreeRDP
[winpr,sspi] fix memory leak in kerberos_InitializeSecurityContextA
This commit is contained in:
parent
4033698266
commit
9ca34bc876
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue