https://git.reactos.org/?p=reactos.git;a=commitdiff;h=059d12a5ac9b5adf5036e2...
commit 059d12a5ac9b5adf5036e24bb134af966f95fae3 Author: Stanislav Motylkov x86corez@gmail.com AuthorDate: Wed May 10 20:28:47 2023 +0200 Commit: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org CommitDate: Wed May 10 20:29:29 2023 +0200
[NTOS:PNP] IopEnumerateDetectedDevices(): Fix CmResourceList leak
CORE-18962 --- ntoskrnl/io/pnpmgr/pnpmap.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/ntoskrnl/io/pnpmgr/pnpmap.c b/ntoskrnl/io/pnpmgr/pnpmap.c index 97a170fc46d..613e95a20c6 100644 --- a/ntoskrnl/io/pnpmgr/pnpmap.c +++ b/ntoskrnl/io/pnpmgr/pnpmap.c @@ -487,6 +487,8 @@ IopEnumerateDetectedDevices( CmResourceList, BootResourcesLength + sizeof(ULONG));
+ ExFreePool(CmResourceList); + if (!NT_SUCCESS(Status)) { DPRINT("ZwSetValueKey() failed with status 0x%08lx\n", Status);