mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:05:43 +00:00
Fix a memory leak in AccpLookupSidByName
svn path=/trunk/; revision=31161
This commit is contained in:
parent
a064f0f708
commit
2391bc80b0
1 changed files with 5 additions and 1 deletions
|
@ -366,7 +366,10 @@ AccpLookupSidByName(IN LSA_HANDLE PolicyHandle,
|
|||
return LsaNtStatusToWinError(Status);
|
||||
|
||||
if (TranslatedSid->Use == SidTypeUnknown || TranslatedSid->Use == SidTypeInvalid)
|
||||
return LsaNtStatusToWinError(STATUS_NONE_MAPPED); /* FIXME- what error code? */
|
||||
{
|
||||
Ret = LsaNtStatusToWinError(STATUS_NONE_MAPPED); /* FIXME- what error code? */
|
||||
goto Cleanup;
|
||||
}
|
||||
|
||||
SidLen = GetLengthSid(TranslatedSid->Sid);
|
||||
ASSERT(SidLen != 0);
|
||||
|
@ -387,6 +390,7 @@ AccpLookupSidByName(IN LSA_HANDLE PolicyHandle,
|
|||
else
|
||||
Ret = ERROR_NOT_ENOUGH_MEMORY;
|
||||
|
||||
Cleanup:
|
||||
LsaFreeMemory(ReferencedDomains);
|
||||
LsaFreeMemory(TranslatedSid);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue