Platform SDK: Active Directory, ADSI, and Directory Services

ldap_memfree

The ldap_memfree function frees memory that was allocated from the LDAP heap.

VOID ldap_memfree(
  PCHAR Block
);

Parameters

Block
[in] A pointer to memory allocated by the LDAP library.

Return Values

None.

Remarks

Call ldap_memfree to free strings, such as the attribute names returned by ldap_*_attribute, or distinguished names returned by ldap_get_dn. Do not free the static buffers used by ldap_open, ldap_get_values, and others.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 SP4 or later.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in Winldap.h.
  Library: Use Wldap32.lib.
  Unicode: Declared as Unicode and ANSI prototypes.

See Also

Functions, ldap_get_dn, ldap_get_values, ldap_open