ldap_memfree()--Free Memory Allocated by LDAP API




Syntax

#include <ldap.h>

void ldap_memfree(
		char 	*mem)



Threadsafe: Yes

The ldap_memfree() function is used to free storage that is allocated by an LDAP API. Use this routine as directed when using ldap_get_errno(), ldap_get_option(), and ldap_first_attribute().

For those LDAP APIs that allocate an LDAPControl structure, the ldap_control_free() API can be used.

For those LDAP APIs that allocate an array of LDAPControl structures, the ldap_controls_free() API can be used.

Authorities and Locks

No OS/400 authority is required. All authority checking is done by the LDAP server.

Parameters

mem
(Input) Specifies the address of storage that was allocated by the LDAP library.

Return Value

NONE

Error Conditions

ldap_memfree() API does not return an error code.

Error Messages

    The following message may be set from this function.
    CPF3CF2 E  Error(s) occurred during running of ldap_memfree API.

Related Information

    ldap_control_free() -- free a single LDAPControl structure.
    ldap_controls_free() -- free an array of LDAPControl structures.
    ldap_ber_free() -- free up the BerElement structure.
    ldap_msgfree() -- free up the LDAPMessage structure.
    ldap_mods_free() -- free up an array of pointers to mod structures.


Top | LDAP APIs List
APIs by category

[Information Center Home Page | Feedback ] [Legal | AS/400 Glossary]