[NTOS:PNP] IopEnumerateDetectedDevices(): Fix CmResourceList leak

CORE-18962
This commit is contained in:
Stanislav Motylkov 2023-05-10 20:28:47 +02:00 committed by Hermès Bélusca-Maïto
parent d8946e20cb
commit 059d12a5ac
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -487,6 +487,8 @@ IopEnumerateDetectedDevices(
CmResourceList,
BootResourcesLength + sizeof(ULONG));
ExFreePool(CmResourceList);
if (!NT_SUCCESS(Status))
{
DPRINT("ZwSetValueKey() failed with status 0x%08lx\n", Status);