21.2.212. PMIx_Node_pid_free

PMIx_Node_pid_free — Release an array of pmix_node_pid_t(5) structures.

21.2.212.1. SYNOPSIS

#include <pmix.h>

void PMIx_Node_pid_free(pmix_node_pid_t *d, size_t n);

21.2.212.1.1. Python Syntax

No Python equivalent

21.2.212.2. INPUT PARAMETERS

21.2.212.3. DESCRIPTION

Release an array of pmix_node_pid_t structures that was allocated by PMIx_Node_pid_create(3). The function destructs the contents of each of the n elements — freeing the hostname payload as if by PMIx_Node_pid_destruct(3) — and then frees the array storage itself.

If d is NULL the function returns without action.

21.2.212.4. RETURN VALUE

PMIx_Node_pid_free returns no value (void).

21.2.212.5. NOTES

PMIx_Node_pid_free is the counterpart to PMIx_Node_pid_create(3). Do not call it on a single structure that was merely constructed with PMIx_Node_pid_construct(3); use PMIx_Node_pid_destruct(3) for that case, since the structure storage was not allocated by the library.