https://git.reactos.org/?p=reactos.git;a=commitdiff;h=95bc44e214cb03fb81845…
commit 95bc44e214cb03fb8184519c8a7ad5a1880a35a2
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sun Nov 11 23:20:46 2018 +0100
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sun Nov 11 23:21:36 2018 +0100
[NTOSKRNL] Don't leak DACL
Spotted by Thomas :-)
---
ntoskrnl/se/semgr.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ntoskrnl/se/semgr.c b/ntoskrnl/se/semgr.c
index 4bf89b6b94..389f6bf765 100644
--- a/ntoskrnl/se/semgr.c
+++ b/ntoskrnl/se/semgr.c
@@ -205,6 +205,9 @@ SepInitializationPhase1(VOID)
&ObjectAttributes);
ASSERT(NT_SUCCESS(Status));
+ /* Free the DACL */
+ ExFreePoolWithTag(Dacl, TAG_SE);
+
/* Create 'LSA_AUTHENTICATION_INITIALIZED' event */
RtlInitUnicodeString(&Name, L"LSA_AUTHENTICATION_INITIALIZED");
InitializeObjectAttributes(&ObjectAttributes,