xref: /illumos-gate/usr/src/man/man3ldap/ldap_memfree.3ldap (revision c124a83e09115de88ecccd4f689983f42a1d53bd)
te
Copyright 2015 Nexenta Systems, Inc. All rights reserved.
Copyright (C) 1990, Regents of the University of Michigan. All Rights Reserved.
Portions Copyright (C) 2003, 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_MEMFREE 3LDAP "Feb 18, 2015"
NAME
ldap_memfree - free memory allocated by LDAP API functions
SYNOPSIS

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

void ldap_memfree(void *p);
DESCRIPTION

The ldap_memfree() function frees the memory allocated by certain LDAP API functions that do not have corresponding functions to free memory. These functions include ldap_get_dn(3LDAP), ldap_first_attribute(3LDAP), and ldap_next_attribute(3LDAP).

The ldap_memfree() function takes one parameter, p, which is a pointer to the memory to be freed.

PARAMETERS
p

A pointer to the memory to be freed.

RETURN VALUES

There are no return values for the ldap_memfree() function.

ERRORS

No errors are defined for the ldap_memfree() function.

ATTRIBUTES

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

ATTRIBUTE TYPE ATTRIBUTE VALUE
Interface Stability Evolving
SEE ALSO

ldap(3LDAP), ldap_first_attribute(3LDAP), ldap_get_dn(3LDAP), ldap_next_attribute(3LDAP), attributes(5)