Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ldap_memfree
Collapse the table of content
Expand the table of content

ldap_memfree function

The ldap_memfree function frees memory allocated from the LDAP heap.

Syntax


VOID ldap_memfree(
  _In_ PCHAR Block
);

Parameters

Block [in]

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

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Header

Winldap.h

Library

Wldap32.lib

DLL

Wldap32.dll

Unicode and ANSI names

ldap_memfreeW (Unicode) and ldap_memfreeA (ANSI)

See also

Functions
ldap_get_dn
ldap_get_values
ldap_open

 

 

Show:
© 2015 Microsoft