[NTOSKRNL]
authorCameron Gutman <aicommander@gmail.com>
Tue, 6 Mar 2012 21:58:29 +0000 (21:58 +0000)
committerCameron Gutman <aicommander@gmail.com>
Tue, 6 Mar 2012 21:58:29 +0000 (21:58 +0000)
- Fix a major device object reference leak (1 per PnP IRP)

svn path=/trunk/; revision=56065

reactos/ntoskrnl/io/pnpmgr/pnpmgr.c

index 16bc2ec..e6110f4 100644 (file)
@@ -1281,7 +1281,10 @@ IopSynchronousCall(IN PDEVICE_OBJECT DeviceObject,
                               NULL);
         Status = IoStatusBlock.Status;
     }
-    
+
+    /* Remove the reference */
+    ObDereferenceObject(TopDeviceObject);
+
     /* Return the information */
     *Information = (PVOID)IoStatusBlock.Information;
     return Status;