Author: ekohl
Date: Sun May 5 00:39:58 2013
New Revision: 58933
URL:
http://svn.reactos.org/svn/reactos?rev=58933&view=rev
Log:
[LSASRV]
Free additional data returned by calls to LsaApLogonUser/Ex/2.
Modified:
trunk/reactos/dll/win32/lsasrv/authpackage.c
Modified: trunk/reactos/dll/win32/lsasrv/authpackage.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/lsasrv/authpacka…
==============================================================================
--- trunk/reactos/dll/win32/lsasrv/authpackage.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/lsasrv/authpackage.c [iso-8859-1] Sun May 5 00:39:58 2013
@@ -743,6 +743,7 @@
if (LocalAuthInfo != NULL)
RtlFreeHeap(RtlGetProcessHeap(), 0, LocalAuthInfo);
+ /* Free the token information */
if (TokenInformation != NULL)
{
if (TokenInformationType == LsaTokenInformationV1)
@@ -786,19 +787,31 @@
}
}
+ /* 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;