Author: cgutman
Date: Tue Mar 6 22:06:44 2012
New Revision: 56066
URL:
http://svn.reactos.org/svn/reactos?rev=56066&view=rev
Log:
[NTOSKRNL]
- Fix yet another major device object reference leak (1 per power IRP)
Modified:
trunk/reactos/ntoskrnl/po/power.c
Modified: trunk/reactos/ntoskrnl/po/power.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/po/power.c?rev=56…
==============================================================================
--- trunk/reactos/ntoskrnl/po/power.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/po/power.c [iso-8859-1] Tue Mar 6 22:06:44 2012
@@ -59,6 +59,7 @@
ExFreePool(Context);
IoFreeIrp(Irp);
+ ObDereferenceObject(DeviceObject);
return STATUS_MORE_PROCESSING_REQUIRED;
}
@@ -547,6 +548,7 @@
NULL);
if (!Irp)
{
+ ObDereferenceObject(TopDeviceObject);
ExFreePool(RequestPowerItem);
return STATUS_INSUFFICIENT_RESOURCES;
}