mirror of
https://github.com/reactos/reactos.git
synced 2024-12-30 19:14:31 +00:00
[LSASRV]
Free additional data returned by calls to LsaApLogonUser/Ex/2. svn path=/trunk/; revision=58933
This commit is contained in:
parent
b914d7bd8e
commit
7934e35cdf
1 changed files with 13 additions and 0 deletions
|
@ -743,6 +743,7 @@ done:
|
|||
if (LocalAuthInfo != NULL)
|
||||
RtlFreeHeap(RtlGetProcessHeap(), 0, LocalAuthInfo);
|
||||
|
||||
/* Free the token information */
|
||||
if (TokenInformation != NULL)
|
||||
{
|
||||
if (TokenInformationType == LsaTokenInformationV1)
|
||||
|
@ -786,19 +787,31 @@ done:
|
|||
}
|
||||
}
|
||||
|
||||
/* Free the account name */
|
||||
if (AccountName != NULL)
|
||||
{
|
||||
if (AccountName->Buffer != NULL)
|
||||
LsapFreeHeap(AccountName->Buffer);
|
||||
|
||||
LsapFreeHeap(AccountName);
|
||||
}
|
||||
|
||||
/* Free the authentication authority */
|
||||
if (AuthenticatingAuthority != NULL)
|
||||
{
|
||||
if (AuthenticatingAuthority != NULL)
|
||||
LsapFreeHeap(AuthenticatingAuthority->Buffer);
|
||||
|
||||
LsapFreeHeap(AuthenticatingAuthority);
|
||||
}
|
||||
|
||||
/* Free the machine name */
|
||||
if (MachineName != NULL)
|
||||
{
|
||||
if (MachineName->Buffer != NULL)
|
||||
LsapFreeHeap(MachineName->Buffer);
|
||||
|
||||
LsapFreeHeap(MachineName);
|
||||
}
|
||||
|
||||
return Status;
|
||||
|
|
Loading…
Reference in a new issue