ldap_memfree

Frees memory allocated by a call to the LDAP libraries.

LDAP Version: v3
Library:*ldapsdk.*
NDS Version:7.xx or higher
Platform:NLM, Windows (NT, 95, 98, 2000, XP, Vista 32-bit and 64-bit ), Linux (32-bit and 64-bit), Solaris, AIX, and HP-UX

Syntax

  #include <ldap.h>
  
  void ldap_memfree (
     char   *mem);
  
  

Parameters

mem

(IN) Points to the memory to free. If this argument is NULL, the function does nothing.

Remarks

The ldap_memfree function is used to free memory the LDAP libraries allocated for names on calls to the ldap_first_attribute, ldap_next_attribute, and ldap_get_dn functions.

See Also

ldap_first_attribute, ldap_next_attribute, ldap_get_dn