From 95bc44e214cb03fb8184519c8a7ad5a1880a35a2 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 11 Nov 2018 23:20:46 +0100 Subject: [PATCH] [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 4bf89b6b949..389f6bf765e 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, -- 2.17.1