Commit 533a426d authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ntoskrnl.exe: Free device IDs from pool.

parent 6937b987
......@@ -301,7 +301,7 @@ static void handle_bus_relations( DEVICE_OBJECT *device )
if (get_driver_for_id( ptr, driver ))
break;
}
RtlFreeHeap( GetProcessHeap(), 0, ids );
ExFreePool( ids );
if (!driver[0])
{
......@@ -409,7 +409,7 @@ NTSTATUS WINAPI IoGetDeviceProperty( DEVICE_OBJECT *device, DEVICE_REGISTRY_PROP
else
status = STATUS_BUFFER_TOO_SMALL;
HeapFree( GetProcessHeap(), 0, id );
ExFreePool( id );
break;
}
case DevicePropertyPhysicalDeviceObjectName:
......@@ -658,17 +658,17 @@ NTSTATUS WINAPI IoRegisterDeviceInterface(DEVICE_OBJECT *device, const GUID *cla
HeapFree( GetProcessHeap(), 0, id );
if (!rc)
{
HeapFree( GetProcessHeap(), 0, instance_id );
ExFreePool( instance_id );
return STATUS_UNSUCCESSFUL;
}
}
else
{
HeapFree( GetProcessHeap(), 0, instance_id );
ExFreePool( instance_id );
return STATUS_UNSUCCESSFUL;
}
}
HeapFree( GetProcessHeap(), 0, instance_id );
ExFreePool( instance_id );
if (!SetupDiCreateDeviceInterfaceW( set, &sp_device, class_guid, refstr ? refstr->Buffer : NULL, 0, &sp_iface ))
return STATUS_UNSUCCESSFUL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment