xref: /titanic_51/usr/src/man/man3ldap/ldap_ber_free.3ldap (revision 88b44bf4e73233af70877930178dbff7f1c2992b)
te
Copyright (C) 1990, Regents of the University of Michigan. All Rights Reserved.
Portions Copyright (C) 2001, Sun Microsystems, Inc. All Rights Reserved.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
LDAP_BER_FREE 3LDAP "Oct 25, 2001"
NAME
ldap_ber_free - free a BerElement structure from memory
SYNOPSIS

cc -flag .\|.\|. file .\|.\|.-lldap [ -library .\|.\|. ]
#include <ldap.h>

void ldap_ber_free(BerElement *ber, int freebuf
DESCRIPTION

You can make a call to the ldap_ber_free() function to free BerElement structures allocated by ldap_first_attribute() and by ldap_next_attribute() function calls. When freeing structures allocated by these functions, specify 0 for the freebuf argument. The ldap_first_attribute() and by ldap_next_attribute() functions do not allocate the extra buffer in the BerElement structure.

For example, to retrieve attributes from a search result entry, you need to call the ldap_first_attribute() function. A call to this function allocates a BerElement structure, which is used to help track the current attribute. When you are done working with the attributes, this structure should be freed from memory, if it still exists.

This function is deprecated . Use the ber_free() function instead.

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
Interface Stability Obsolete
SEE ALSO

ber_free(3LDAP), ldap_first_attribute(3LDAP), ldap_next_attribute(3LDAP), attributes(5)