https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9f8fbe14f5e48a0ff39107...
commit 9f8fbe14f5e48a0ff391078866bbfddcfe16d222 Author: George Bișoc george.bisoc@reactos.org AuthorDate: Sun May 8 19:16:34 2022 +0200 Commit: George Bișoc george.bisoc@reactos.org CommitDate: Sun May 8 19:16:34 2022 +0200
[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). --- ntoskrnl/ob/obsecure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ntoskrnl/ob/obsecure.c b/ntoskrnl/ob/obsecure.c index 135b7b2f5e1..649ba4ea283 100644 --- a/ntoskrnl/ob/obsecure.c +++ b/ntoskrnl/ob/obsecure.c @@ -718,7 +718,7 @@ ObReleaseObjectSecurity(IN PSECURITY_DESCRIPTOR SecurityDescriptor, if (MemoryAllocated) { /* Free it */ - ExFreePool(SecurityDescriptor); + ExFreePoolWithTag(SecurityDescriptor, TAG_SEC_QUERY); } else {