ldap_ber_free()--Free storage allocated by the LDAP library




Syntax

#include <ldap.h>
 
void ldap_ber_free(
		BerElement  	*berptr) 



Threadsafe: Yes

The ldap_ber_free() routine is used to free the BerElement pointed to by berptr. The LDAP library automatically frees the BerElement when ldap_next_attribute() returns NULL. The application is responsible for freeing the BerElement if for some reason it does not invoke ldap_next_attribute() until it returns NULL.

Authorities and Locks

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

Parameters

berptr
(Input) Specifies the address of the BerElement returned from ldap_first_attribute() and ldap_next_attribute().

Return Value

NONE

Error Conditions

ldap_ber_free() 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_ber_free API.

Related Information

    ldap_memfree() -- free up storage that has been allocated by the LDAP client library.
    ldap_control_free() -- free a single LDAPControl structure.
    ldap_controls_free() -- free an array of LDAPControl structures.
    ldap_msgfree() -- free up results allocated.
    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]