From 192892221333113b28353fbe428adfc1bf6bbaae Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Sat, 10 Aug 2024 10:35:44 +0200 Subject: [FIX] [newoskrnl.dll] Fixed it's heap and improved it as well. [FIX] Fix memory leak in TrySave. (\Kernel\Sources\User.cxx) Signed-off-by: Amlal EL Mahrouss --- Kernel/KernelKit/ProcessScheduler.hxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Kernel/KernelKit') diff --git a/Kernel/KernelKit/ProcessScheduler.hxx b/Kernel/KernelKit/ProcessScheduler.hxx index cd0a7a93..c47c562d 100644 --- a/Kernel/KernelKit/ProcessScheduler.hxx +++ b/Kernel/KernelKit/ProcessScheduler.hxx @@ -150,15 +150,13 @@ namespace Kernel AffinityKind Affinity{AffinityKind::kStandard}; ProcessStatus Status{ProcessStatus::kDead}; - // Memory, images. + // Memory, images pointers. HeapPtrKind HeapCursor{nullptr}; ImagePtr Image{nullptr}; HeapPtrKind HeapPtr{nullptr}; - typedef PEFSharedObjectInterface ProcessDLLInterface; - - // shared library handle, reserved for kSharedLib only. - ProcessDLLInterface* DLLPtr{nullptr}; + // shared library handle, reserved for kSharedObjectKind types of executables only. + PEFSharedObjectInterface* DLLPtr{nullptr}; // Memory usage. SizeT UsedMemory{0}; -- cgit v1.2.3