table of contents
| PMIX_QUERY_DESTRUCT(3) | OpenPMIx | PMIX_QUERY_DESTRUCT(3) |
PMIx_Query_destruct — Release the contents of a pmix_query_t(5) <#man5-pmix-query-t> structure.
SYNOPSIS¶
#include <pmix.h> void PMIx_Query_destruct(pmix_query_t *p);
Python Syntax¶
No Python equivalent
INPUT PARAMETERS¶
- •
- p: Pointer to the pmix_query_t(5) <#man5-pmix-query-t> structure whose contents are to be released.
DESCRIPTION¶
Release the dynamically allocated contents of a pmix_query_t <#man5-pmix-query-t> structure. The function frees the keys string array (if present) and frees the array of qualifiers pmix_info_t(5) <#man5-pmix-info-t> structures (if present), then resets those pointers to NULL and sets nqual to zero.
PMIx_Query_destruct releases only the payload the structure references; it does not free the storage of the pmix_query_t structure itself. It is therefore the correct counterpart to PMIx_Query_construct(3) <#man3-pmix-query-construct> for structures whose storage was supplied by the caller (stack or embedded).
RETURN VALUE¶
PMIx_Query_destruct returns no value (void).
NOTES¶
The PMIX_QUERY_DESTRUCT convenience macro is a direct wrapper for this function.
To release an array of query structures allocated by PMIx_Query_create(3) <#man3-pmix-query-create> — including the array storage itself — use PMIx_Query_free(3) <#man3-pmix-query-free> or PMIx_Query_release(3) <#man3-pmix-query-release> instead.
See also:
Copyright¶
2014-2026, OpenPMIx Community
| November 5, 2026 |