mirror of
https://github.com/reactos/reactos.git
synced 2025-01-06 06:20:13 +00:00
- Fix possible handle leak.
See issue #2934 for more details. svn path=/trunk/; revision=31602
This commit is contained in:
parent
3a4e403d40
commit
0a5f4f5403
1 changed files with 2 additions and 1 deletions
|
@ -171,10 +171,11 @@ IopGetDeviceObjectPointer(IN PUNICODE_STRING ObjectName,
|
|||
/* Return the requested data */
|
||||
*DeviceObject = IoGetRelatedDeviceObject(LocalFileObject);
|
||||
*FileObject = LocalFileObject;
|
||||
ZwClose(FileHandle);
|
||||
}
|
||||
|
||||
/* Close the handle */
|
||||
ZwClose(FileHandle);
|
||||
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue