[NTOSKRNL]

Plumber work part 1. To prevent leaks

svn path=/trunk/; revision=50202
This commit is contained in:
Pierre Schweitzer 2010-12-28 21:12:51 +00:00
parent f5bc202da7
commit 3ca46a9903

View file

@ -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);