[NDISUIO] Addendum to r67107. Better ordering of the cleanups. CORE-8210

svn path=/trunk/; revision=67108
This commit is contained in:
Amine Khaldi 2015-04-09 09:50:44 +00:00
parent 0d143e6148
commit 3e4eea0b98

View file

@ -187,8 +187,8 @@ NduReceive(NDIS_HANDLE ProtocolBindingContext,
if (Status != NDIS_STATUS_SUCCESS)
{
DPRINT1("Failed to transfer data with status 0x%x\n", Status);
ExFreePool(PacketBuffer);
CleanupAndFreePacket(Packet, TRUE);
ExFreePool(PacketBuffer);
return NDIS_STATUS_NOT_ACCEPTED;
}
}