mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 08:00:24 +00:00
- Don't leak a FileObject reference in case of failure.
svn path=/trunk/; revision=38531
This commit is contained in:
parent
331aa9e529
commit
658957a6ab
1 changed files with 5 additions and 1 deletions
|
@ -1148,7 +1148,11 @@ NtNotifyChangeDirectoryFile(IN HANDLE FileHandle,
|
||||||
PreviousMode,
|
PreviousMode,
|
||||||
(PVOID *)&Event,
|
(PVOID *)&Event,
|
||||||
NULL);
|
NULL);
|
||||||
if (Status != STATUS_SUCCESS) return Status;
|
if (Status != STATUS_SUCCESS)
|
||||||
|
{
|
||||||
|
ObDereferenceObject(FileObject);
|
||||||
|
return Status;
|
||||||
|
}
|
||||||
KeClearEvent(Event);
|
KeClearEvent(Event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue