mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 22:31:38 +00:00
[NTOSKRNL]
- Fix yet another major device object reference leak (1 per power IRP) svn path=/trunk/; revision=56066
This commit is contained in:
parent
2a70af6641
commit
8fb6abbc24
1 changed files with 2 additions and 0 deletions
|
@ -59,6 +59,7 @@ PopRequestPowerIrpCompletion(IN PDEVICE_OBJECT DeviceObject,
|
|||
ExFreePool(Context);
|
||||
|
||||
IoFreeIrp(Irp);
|
||||
ObDereferenceObject(DeviceObject);
|
||||
|
||||
return STATUS_MORE_PROCESSING_REQUIRED;
|
||||
}
|
||||
|
@ -547,6 +548,7 @@ PoRequestPowerIrp(IN PDEVICE_OBJECT DeviceObject,
|
|||
NULL);
|
||||
if (!Irp)
|
||||
{
|
||||
ObDereferenceObject(TopDeviceObject);
|
||||
ExFreePool(RequestPowerItem);
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue