.. _man3-PMIx_Node_pid_free: PMIx_Node_pid_free ================== .. include_body ``PMIx_Node_pid_free`` |mdash| Release an array of :ref:`pmix_node_pid_t(5) ` structures. SYNOPSIS -------- .. code-block:: c #include void PMIx_Node_pid_free(pmix_node_pid_t *d, size_t n); Python Syntax ^^^^^^^^^^^^^ No Python equivalent INPUT PARAMETERS ---------------- * ``d``: Pointer to an array of :ref:`pmix_node_pid_t(5) ` structures previously returned by :ref:`PMIx_Node_pid_create(3) `. * ``n``: Number of structures in the array |mdash| must be the same count that was passed to :ref:`PMIx_Node_pid_create(3) `. DESCRIPTION ----------- Release an array of :ref:`pmix_node_pid_t ` structures that was allocated by :ref:`PMIx_Node_pid_create(3) `. The function destructs the contents of each of the ``n`` elements |mdash| freeing the ``hostname`` payload as if by :ref:`PMIx_Node_pid_destruct(3) ` |mdash| and then frees the array storage itself. If ``d`` is ``NULL`` the function returns without action. RETURN VALUE ------------ ``PMIx_Node_pid_free`` returns no value (``void``). NOTES ----- ``PMIx_Node_pid_free`` is the counterpart to :ref:`PMIx_Node_pid_create(3) `. Do not call it on a single structure that was merely constructed with :ref:`PMIx_Node_pid_construct(3) `; use :ref:`PMIx_Node_pid_destruct(3) ` for that case, since the structure storage was not allocated by the library. .. seealso:: :ref:`PMIx_Node_pid_create(3) `, :ref:`PMIx_Node_pid_construct(3) `, :ref:`PMIx_Node_pid_destruct(3) `, :ref:`pmix_node_pid_t(5) `