.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "MEMPOOL_DESTROY" "" "06 October 2005" "" "" .SH NAME mempool_destroy \- deallocate a memory pool .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp void mempool_destroy (mempool_t * \fIpool\fB); \fR .SH "ARGUMENTS" .TP \fB\fIpool\fB\fR pointer to the memory pool which was allocated via \fBmempool_create\fR\&. .SH "DESCRIPTION" .PP this function only sleeps if the \fBfree_fn\fR function sleeps. The caller has to guarantee that all elements have been returned to the pool (ie: freed) prior to calling \fBmempool_destroy\fR\&.