ExFreePool

VOID
    ExFreePool(

        IN PVOID  P
        );

ExFreePool deallocates a block of pool memory.

Parameters

P
Specifies the address of the block of pool memory being deallocated.

Comments

This routine releases memory allocated by ExAllocatePool, ExAllocatePoolWithTag, ExAllocatePoolWithQuota, or ExAllocatePoolWithQuotaTag. The memory block must not be accessed after it is freed.

Callers of ExAllocatePool must be running at IRQL <= DISPATCH_LEVEL.

A caller at DISPATCH_LEVEL must have specified a NonPagedXxx PoolType when the memory was allocated. Otherwise, the caller must be running at IRQL < DISPATCH_LEVEL.

See Also

ExAllocatePool, ExAllocatePoolWithQuota, ExAllocatePoolWithQuotaTag, ExAllocatePoolWithTag