Scroll to navigation

PMIX_BYTE_OBJECT_FREE(3) OpenPMIx PMIX_BYTE_OBJECT_FREE(3)

PMIx_Byte_object_free — Release an array of pmix_byte_object_t(5) <#man5-pmix-byte-object-t> structures and its storage.

SYNOPSIS

#include <pmix.h>
void PMIx_Byte_object_free(pmix_byte_object_t *g, size_t n);


Python Syntax

No Python equivalent

INPUT PARAMETERS


DESCRIPTION

Release an array of pmix_byte_object_t <#man5-pmix-byte-object-t> structures that was allocated by PMIx_Byte_object_create(3) <#man3-pmix-byte-object-create>. Each of the n elements is destructed (freeing any bytes payload it holds), and then the storage for the array itself is freed.

If g is NULL the function does nothing.

RETURN VALUE

PMIx_Byte_object_free returns no value (void).

NOTES

PMIx_Byte_object_free frees the array storage itself, so it must only be used on arrays obtained from PMIx_Byte_object_create(3) <#man3-pmix-byte-object-create>. To release only the payload of a caller-provided (stack or embedded) object without freeing its storage, use PMIx_Byte_object_destruct(3) <#man3-pmix-byte-object-destruct> instead.

The convenience macro PMIX_BYTE_OBJECT_FREE wraps this function and additionally sets the caller’s pointer to NULL.

See also:

PMIx_Byte_object_create(3) <#man3-pmix-byte-object-create>, PMIx_Byte_object_construct(3) <#man3-pmix-byte-object-construct>, PMIx_Byte_object_destruct(3) <#man3-pmix-byte-object-destruct>, PMIx_Byte_object_load(3) <#man3-pmix-byte-object-load>, pmix_byte_object_t(5) <#man5-pmix-byte-object-t>


Copyright

2014-2026, OpenPMIx Community

November 5, 2026