Skip to content

Commit

Permalink
Avoid initial pool shelf allocation; saves memory if Npcap is not use…
Browse files Browse the repository at this point in the history
…d on an adapter
  • Loading branch information
bonsaiviking committed Apr 28, 2020
1 parent 5a2e90f commit b48d247
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packetWin7/npf/npf/ObjPool.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,6 @@ PNPF_OBJ_POOL NPF_AllocateObjectPool(NDIS_HANDLE NdisHandle, ULONG ulObjectSize,
pPool->ulObjectSize = ulObjectSize;
pPool->ulIncrement = ulIncrement;

if (!NPF_ExtendObjectShelf(pPool))
{
NdisFreeMemory(pPool, sizeof(NPF_OBJ_POOL), 0);
return NULL;
}

return pPool;
}

Expand Down

0 comments on commit b48d247

Please sign in to comment.