projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb4fbc5
)
[NTOSKRNL]
author
Cameron Gutman
<aicommander@gmail.com>
Tue, 6 Mar 2012 21:58:29 +0000
(21:58 +0000)
committer
Cameron 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
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
b/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
index
16bc2ec
..
e6110f4
100644
(file)
--- a/
reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
+++ b/
reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
@@
-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;