sec_attr_util_free(3sec) — Subroutines
NAME
sec_attr_util_free — Frees nonnull pointers in a sec_attr_t with an input deallocate routine
Synopsis
void sec_attr_util_free(
void (∗deallocate) (void ∗ptr),
sec_attr_t ∗attr);
Parameters
Input/Output
(∗deallocate)(void ∗ptr)
A caller-specified memory deallocate routine. If set to NULL, the default free() is used.
∗attrAs input, a pointer to a sec_attr_t for which memory should be deallocated. As output, a pointer to the sec_attr_t with subfields, if any, deallocated and set to NULL.
Description
The sec_attr_util_free() routine uses the input deallocate routine to free memory allocated to a sec_attr_t by sec_attr_util_alloc_copy(). With an input value of NULL for deallocate, the sec_attr_util_free routine behaves identically to sec_attr_util_inst_free_ptrs.
Files
/usr/include/dce/sec_attr_util.idl
The idl file from which dce/sec_attr_util.h was derived.
Related Information
Functions: sec_attr_util_alloc_copy(3sec), sec_attr_util_inst_free_ptrs(3sec), sec_attr_util_inst_free(3sec).