ldap_value_free_len

Frees the memory allocated for an array of berval structures.

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_len (
     struct berval   **vals);
  
  

Parameters

vals

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

Remarks

The memory for each berval structure is freed as well as the array.

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

See Also

ldap_get_values_len, ldap_count_values_len, ldap_value_free