ldap_value_free

Frees the memory allocated for an array of string values.

LDAP Version:v2 or higher
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_value_free (
     char   **vals);
  
  

Parameters

vals

(IN) Points to the array of values returned by the ldap_get_values function.

Remarks

The memory for each value is freed as well as the array.

If NULL is passed for the vals parameter, this function does nothing.

See Also

ldap_get_values, ldap_count_values, ldap_value_free_len