ldap_memfreeA function (winldap.h)

The ldap_memfree function frees memory allocated from the LDAP heap.

Syntax

WINLDAPAPI VOID LDAPAPI ldap_memfreeA(
  [in] PCHAR Block
);

Parameters

[in] Block

A pointer to a null-terminated string that contains a pointer to memory allocated by the LDAP library.

Return value

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

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header winldap.h
Library Wldap32.lib
DLL Wldap32.dll

See also

Functions

ldap_get_dn

ldap_get_values

ldap_open