Author: pschweitzer
Date: Tue Dec 28 21:12:51 2010
New Revision: 50202
URL:
http://svn.reactos.org/svn/reactos?rev=50202&view=rev
Log:
[NTOSKRNL]
Plumber work part 1. To prevent leaks
Modified:
trunk/reactos/ntoskrnl/cc/copy.c
Modified: trunk/reactos/ntoskrnl/cc/copy.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cc/copy.c?rev=502…
==============================================================================
--- trunk/reactos/ntoskrnl/cc/copy.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/cc/copy.c [iso-8859-1] Tue Dec 28 21:12:51 2010
@@ -210,6 +210,8 @@
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 @@
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);