mirror of
https://github.com/reactos/reactos.git
synced 2026-06-04 10:20:48 +08:00
[NTOS:OB] Specify the query security descriptor tag when freeing the allocation
We are allocating blocks of pool memory for a security descriptor with its own specific tag, TAG_SEC_QUERY, so just use it when freeing when releasing the descriptor as well (aka freeing the said pool).
This commit is contained in:
@@ -718,7 +718,7 @@ ObReleaseObjectSecurity(IN PSECURITY_DESCRIPTOR SecurityDescriptor,
|
||||
if (MemoryAllocated)
|
||||
{
|
||||
/* Free it */
|
||||
ExFreePool(SecurityDescriptor);
|
||||
ExFreePoolWithTag(SecurityDescriptor, TAG_SEC_QUERY);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user