[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

View File

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