omp_destroy_allocator (GNU libgomp)

#### 3.13.2 `omp_destroy_allocator` – Destroy an allocator ¶

Description:

  Releases all resources used by a memory allocator, which must not represent a predefined memory allocator. Accessing memory after its allocator has been destroyed has unspecified behavior. Passing `omp_null_allocator` to the routine is permitted but has no effect.

C/C++:

  Prototype: | `void omp_destroy_allocator (omp_allocator_handle_t allocator);`

Fortran:

  Interface: | `subroutine omp_destroy_allocator(allocator)`
  | `integer (omp_allocator_handle_kind), intent(in) :: allocator`

See also:

  `omp_init_allocator` – Create an allocator

Reference:

  OpenMP specification v5.0, Section 3.7.3