---
name: "mempool_destroy"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/mempool_destroy"
---

# mempool\_destroy(9)

deallocate a memory pool

## NAME

mempool\_destroy - deallocate a memory pool

## SYNOPSIS

**void mempool\_destroy(mempool\_t \*** *pool***);**

## ARGUMENTS

*pool*

pointer to the memory pool which was allocated via **mempool\_create**.

## DESCRIPTION

Free all reserved elements in *pool* and *pool* itself. This function only sleeps if the **free\_fn** function sleeps.

## COPYRIGHT
