https://git.reactos.org/?p=reactos.git;a=commitdiff;h=95bc44e214cb03fb8184519c8a7ad5a1880a35a2

commit 95bc44e214cb03fb8184519c8a7ad5a1880a35a2
Author:     Pierre Schweitzer <[email protected]>
AuthorDate: Sun Nov 11 23:20:46 2018 +0100
Commit:     Pierre Schweitzer <[email protected]>
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,

Reply via email to