From: Pierre Schweitzer Date: Sun, 11 Nov 2018 22:20:46 +0000 (+0100) Subject: [NTOSKRNL] Don't leak DACL X-Git-Tag: 0.4.12-dev~227 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=95bc44e214cb03fb8184519c8a7ad5a1880a35a2;hp=3c8356e752fdb1874c84e78876cceac49b04cf63 [NTOSKRNL] Don't leak DACL Spotted by Thomas :-) --- 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,