[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:
George Bișoc 2022-05-08 19:16:34 +02:00
parent 94c25baf85
commit 9f8fbe14f5
No known key found for this signature in database
GPG key ID: 688C4FBE25D7DEF6

View file

@ -718,7 +718,7 @@ ObReleaseObjectSecurity(IN PSECURITY_DESCRIPTOR SecurityDescriptor,
if (MemoryAllocated)
{
/* Free it */
ExFreePool(SecurityDescriptor);
ExFreePoolWithTag(SecurityDescriptor, TAG_SEC_QUERY);
}
else
{