Scroll to navigation

PMIX_DATA_ARRAY_FREE(3) OpenPMIx PMIX_DATA_ARRAY_FREE(3)

PMIx_Data_array_free — Release a pmix_data_array_t(5) <#man5-pmix-data-array-t> allocated by PMIx_Data_array_create(3) <#man3-pmix-data-array-create>.

SYNOPSIS

#include <pmix.h>
void PMIx_Data_array_free(pmix_data_array_t *p);


Python Syntax

No Python equivalent

INPUT PARAMETERS

•
p: Pointer to the pmix_data_array_t(5) <#man5-pmix-data-array-t> structure to be released.

DESCRIPTION

Release a pmix_data_array_t <#man5-pmix-data-array-t> that was previously allocated by PMIx_Data_array_create(3) <#man3-pmix-data-array-create>. The backing element array (and any per-element payload) is destructed via PMIx_Data_array_destruct(3) <#man3-pmix-data-array-destruct>, and then the pmix_data_array_t structure itself is freed.

If p is NULL, the function does nothing.

RETURN VALUE

PMIx_Data_array_free returns no value (void).

NOTES

PMIx_Data_array_free is the counterpart of PMIx_Data_array_create(3) <#man3-pmix-data-array-create>. Use it only on a structure that the library allocated. For a caller-provided structure that was merely constructed with PMIx_Data_array_construct(3) <#man3-pmix-data-array-construct>, use PMIx_Data_array_destruct(3) <#man3-pmix-data-array-destruct> instead — calling PMIx_Data_array_free on such a structure would attempt to free storage the library did not allocate.

See also:

PMIx_Data_array_init(3) <#man3-pmix-data-array-init>, PMIx_Data_array_construct(3) <#man3-pmix-data-array-construct>, PMIx_Data_array_destruct(3) <#man3-pmix-data-array-destruct>, PMIx_Data_array_create(3) <#man3-pmix-data-array-create>, pmix_data_array_t(5) <#man5-pmix-data-array-t>


Copyright

2014-2026, OpenPMIx Community

November 5, 2026