table of contents
| PMIX_VALUE_DESTRUCT(3) | OpenPMIx | PMIX_VALUE_DESTRUCT(3) |
PMIx_Value_destruct — Release the contents of a pmix_value_t(5) <#man5-pmix-value-t> structure.
SYNOPSIS¶
#include <pmix.h> void PMIx_Value_destruct(pmix_value_t *val);
Python Syntax¶
No Python equivalent
INPUT PARAMETERS¶
- •
- val: Pointer to the pmix_value_t(5) <#man5-pmix-value-t> structure whose contents are to be released.
DESCRIPTION¶
Release any heap memory referenced by the payload of a pmix_value_t(5) <#man5-pmix-value-t> — for example, a string, a nested pmix_data_array_t, a byte object, or any other type that owns allocated storage. The specific action taken is determined by the value’s type field. Scalar payloads (integers, booleans, sizes, and the like) own no separate storage and require no release.
PMIx_Value_destruct frees only the contents of the structure; it does not free the storage occupied by the pmix_value_t itself. It is the counterpart to PMIx_Value_construct(3) <#man3-pmix-value-construct> and is intended for values whose storage the caller supplied (stack or embedded). To release an array of values that was heap-allocated by PMIx_Value_create(3) <#man3-pmix-value-create>, use PMIx_Value_free(3) <#man3-pmix-value-free> instead, which destructs the contents and frees the array storage.
RETURN VALUE¶
PMIx_Value_destruct returns no value (void).
NOTES¶
PMIx_Value_destruct is an OpenPMIx convenience routine. The corresponding macro-style interface for this operation is PMIX_VALUE_DESTRUCT.
See also:
Copyright¶
2014-2026, OpenPMIx Community
| November 21, 2026 |