INtime SDK Help
mpool_free
INtime SDK v7 > About INtime > Other system libraries > Heaps and memory pools > Memory pools > mpool_free

Frees a buffer allocated with mpool_alloc or mpool_realloc.

BOOLEAN mpool_free(
    MPOOL pool, 
    void * buf
);

Parameters

pool
The memory pool created by mpool_create.
buf
The buffer returned from mpool_alloc or mpool_realloc.

Return Values

TRUE
Success.
FALSE
Failure. The function sets errno to one of these values:
EEXIST The pool is deleted.
EINVAL The pool is not a valid MPOOL, buf does not belong to the pool, or an internal error exists.

Requirements

Versions Defined in Include Link to
INtime 4.0 intime/rt/include/mpool.h mpool.h clib.lib
   
See Also