projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b933fb
)
[NTOS:IO]
author
Thomas Faber
<thomas.faber@reactos.org>
Fri, 3 Apr 2015 03:40:53 +0000
(
03:40
+0000)
committer
Thomas Faber
<thomas.faber@reactos.org>
Fri, 3 Apr 2015 03:40:53 +0000
(
03:40
+0000)
- Fix file object reference leak in NtWriteFile
CORE-9472 #resolve
svn path=/trunk/; revision=67014
reactos/ntoskrnl/io/iomgr/iofunc.c
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/io/iomgr/iofunc.c
b/reactos/ntoskrnl/io/iomgr/iofunc.c
index
885a60c
..
165803a
100644
(file)
--- a/
reactos/ntoskrnl/io/iomgr/iofunc.c
+++ b/
reactos/ntoskrnl/io/iomgr/iofunc.c
@@
-3201,7
+3201,8
@@
NtWriteFile(IN HANDLE FileHandle,
}
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
{
- /* Return the exception code */
+ /* Release the file object and return the exception code */
+ ObDereferenceObject(FileObject);
_SEH2_YIELD(return _SEH2_GetExceptionCode());
}
_SEH2_END;