Index: ntoskrnl/io/pnpmgr/pnpmgr.c =================================================================== --- ntoskrnl/io/pnpmgr/pnpmgr.c (revision 74478) +++ ntoskrnl/io/pnpmgr/pnpmgr.c (working copy) @@ -1144,6 +1144,7 @@ if (!NT_SUCCESS(Status)) { + ExFreePool(Node->ServiceName.Buffer); ExFreePoolWithTag(Node, TAG_IO_DEVNODE); return Status; } @@ -1462,7 +1463,7 @@ /* Go up to the end of the string */ while (Current <= Last) { - if (Current != Last && *Current != '\\') + if (Current != Last && *Current != L'\\') { /* Not the end of the string and not a separator */ Current++;