pfree -- Return an Allocated Element to a Storage Pool

SYNOPSIS

 #include <pool.h>

 void pfree(POOL_t *p, void *elt);
 

DESCRIPTION

pfree returns a previously allocated element to a storage pool (created by the pool function). p is a pointer to the pool, and elt is a pointer to the element to be returned.

RETURN VALUE

pfree has no return value.

CAUTION

If the returned element is not allocated from the storage pool, the results are unpredictable.

You should not reference pool elements after the pool has been freed.

EXAMPLE

See the example for pool.

RELATED FUNCTIONS

free, palloc, pool,

SEE ALSO

Memory Allocation Functions

Copyright (c) 1998 SAS Institute Inc. Cary, NC, USA. All rights reserved.