ldap_mods_free()--Free LDAP Modify Storage


  Syntax
 #include <ldap.h>

 void ldap_mods_free(
                LDAPMod  **mods,
                int        freemods)

  Default Public Authority: *USE

  Library Name/Service Program: QSYS/QGLDCLNT

  Threadsafe: Yes

The ldap_mods_free() function is used to free storage associated with the ldap_modify() and related LDAP APIs.

ldap_mods_free() can be used to free each element of a NULL-terminated array of modification structures. If freemods is nonzero, the mods pointer itself is freed, otherwise freeing mods is left to the caller.


Authorities and Locks

No IBM® i authority is required.


Parameters

mods
(Input) Specifies a NULL-terminated array of modifications to make to the entry. Each element of the mods array is a pointer to an LDAPMod structure.
freemods
(Input) Specifies whether or not the mods pointer is to be freed in addition to the NULL-terminated array of LDAPMod structures.

Return Value

None.


Error Conditions

The ldap_mods_free() API does not return an error code.


Error Messages

The following message may be sent from this function.

Message ID Error Message Text
CPF3CF2 E Error(s) occurred during running of ldap_mods_free API.


Related Information



API introduced: V4R3

[ Back to top | LDAP APIs | APIs by category ]