[NTOSKRNL] Don't leak DACL
[reactos.git] / ntoskrnl / se / semgr.c
index 4bf89b6..389f6bf 100644 (file)
@@ -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,