HOME
| OPENMP API Specification: Version 5.0 November 2018

3.7.7  omp_free

SummaryThe omp_free routine deallocates previously allocated memory.

Format

SVG-Viewer needed.

 

 
void omp_free (void *ptr, omp_allocator_handle_t allocator);  

SVG-Viewer needed.

SVG-Viewer needed.

 

 
void omp_free( 
  void *ptr, 
  omp_allocator_handle_t allocator=omp_null_allocator 
);  

SVG-Viewer needed.

EffectThe omp_free routine deallocates the memory to which ptr points. The ptr argument must point to memory previously allocated with a memory allocator. If the allocator argument is specified it must be the memory allocator to which the allocation request was made. If the allocator argument is omp_null_allocator the implementation will determine that value automatically. Using omp_free on memory that was already deallocated or that was allocated by an allocator that has already been destroyed with omp_destroy_allocator results in unspecified behavior.

Cross References

SVG-Viewer needed.