ldap_memfree() frees memory allocated by an LDAP API function call. For more information, see "Managing Memory" on page 70.
#include <ldap.h>
void ldap_memfree( void *p );
p |
ldap_get_dn() function.
#include <ldap.h>
...
LDAP *ld;
char *dn;
LDAPMessage *entry;
...
/* Get the distinguished name (DN) for an entry */
dn = ldap_get_dn( ld, entry );
...
/* When you are finished working with the DN, free the memory allocated for the DN */
ldap_memfree( dn );
...
ldap_free_friendlymap(), ldap_free_urldesc(), ldap_msgfree(), ldap_value_free(), ldap_value_free_len().
Last Updated: 10/01/98 17:06:23