mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
[NTOSKRNL]
Plumber work part 1. To prevent leaks svn path=/trunk/; revision=50202
This commit is contained in:
parent
f5bc202da7
commit
3ca46a9903
1 changed files with 3 additions and 0 deletions
|
@ -210,6 +210,8 @@ ReadCacheSegment(PCACHE_SEGMENT CacheSeg)
|
|||
Status = IoStatus.Status;
|
||||
}
|
||||
|
||||
IoFreeMdl(Mdl);
|
||||
|
||||
if (!NT_SUCCESS(Status) && Status != STATUS_END_OF_FILE)
|
||||
{
|
||||
DPRINT1("IoPageRead failed, Status %x\n", Status);
|
||||
|
@ -262,6 +264,7 @@ WriteCacheSegment(PCACHE_SEGMENT CacheSeg)
|
|||
KeWaitForSingleObject(&Event, Executive, KernelMode, FALSE, NULL);
|
||||
Status = IoStatus.Status;
|
||||
}
|
||||
IoFreeMdl(Mdl);
|
||||
if (!NT_SUCCESS(Status) && (Status != STATUS_END_OF_FILE))
|
||||
{
|
||||
DPRINT1("IoPageWrite failed, Status %x\n", Status);
|
||||
|
|
Loading…
Reference in a new issue