NdisFreeBufferPool releases a handle obtained in a preceding call to NdisAllocateBufferPool.
VOID
NdisFreeBufferPool(
IN NDIS_HANDLE PoolHandle
);
Declared in Ndis.h. Include Ndis.h.
Before calling NdisFreeBufferPool, the driver must call NdisFreeBuffer as many times as necessary to release all buffer descriptors that were allocated with NdisAllocateBuffer but not yet released. Otherwise, the call to NdisFreeBufferPool causes a memory leak.
Callers of NdisFreeBufferPool run at IRQL <= DISPATCH_LEVEL.
NdisAllocateBuffer, NdisAllocateBufferPool, NdisFreeBuffer, NdisReleaseSpinLock