X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fdrivers%2Fbus%2Facpi%2Fmain.c;h=b58c097eed228a39b87d68c2210b7a7cc178fd9e;hp=afdce0e16678ccbbcaa19d13bc7586a397dd1a4a;hb=c4393987a13bb7dcf1cef53779406e4a18ac7fb9;hpb=8f2963ab01068fea65bbfd14a3c3a74d64a0a6cd diff --git a/reactos/drivers/bus/acpi/main.c b/reactos/drivers/bus/acpi/main.c index afdce0e1667..b58c097eed2 100644 --- a/reactos/drivers/bus/acpi/main.c +++ b/reactos/drivers/bus/acpi/main.c @@ -37,8 +37,8 @@ Bus_AddDevice( NTSTATUS status; PDEVICE_OBJECT deviceObject = NULL; PFDO_DEVICE_DATA deviceData = NULL; - PWCHAR deviceName = NULL; #ifndef NDEBUG + PWCHAR deviceName = NULL; ULONG nameLength; #endif @@ -159,9 +159,11 @@ Bus_AddDevice( deviceObject->Flags &= ~DO_DEVICE_INITIALIZING; End: +#ifndef NDEBUG if (deviceName){ ExFreePoolWithTag(deviceName, 'MpcA'); } +#endif if (!NT_SUCCESS(status) && deviceObject){ if (deviceData && deviceData->NextLowerDriver){ IoDetachDevice (deviceData->NextLowerDriver);