table of contents
| PMIX_ENDPOINT_FREE(3) | OpenPMIx | PMIX_ENDPOINT_FREE(3) |
PMIx_Endpoint_free — Release an array of pmix_endpoint_t(5) <#man5-pmix-endpoint-t> structures allocated by PMIx_Endpoint_create(3) <#man3-pmix-endpoint-create>.
SYNOPSIS¶
#include <pmix.h> void PMIx_Endpoint_free(pmix_endpoint_t *e, size_t n);
Python Syntax¶
No Python equivalent
INPUT PARAMETERS¶
- e: Pointer to the array of pmix_endpoint_t(5) <#man5-pmix-endpoint-t> structures to be released. May be NULL, in which case the call is a no-op.
- n: Number of structures in the array.
DESCRIPTION¶
Release an array of pmix_endpoint_t <#man5-pmix-endpoint-t> structures that was previously allocated by PMIx_Endpoint_create(3) <#man3-pmix-endpoint-create>. The function destructs each of the n elements — freeing the uuid and osname strings and the endpt byte-object payload of every member — and then frees the array storage itself. If e is NULL the function returns immediately.
Use this routine only on array storage that the library allocated. A single structure that was initialized with PMIx_Endpoint_construct(3) <#man3-pmix-endpoint-construct> must be released with PMIx_Endpoint_destruct(3) <#man3-pmix-endpoint-destruct> instead, since its storage was provided by the caller.
RETURN VALUE¶
PMIx_Endpoint_free returns no value (void).
NOTES¶
Unlike PMIx_Endpoint_destruct(3) <#man3-pmix-endpoint-destruct>, which releases only the contents of a structure, PMIx_Endpoint_free also frees the memory occupied by the array itself.
See also:
Copyright¶
2014-2026, OpenPMIx Community
| November 5, 2026 |