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 2008 |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names |
ldap_memfreeW (Unicode) and ldap_memfreeA (ANSI) |
See also