ber_free function (winber.h)

The ber_free function frees a BerElement structure that was previously allocated with ber_alloc_t, ber_init, or the ldap_first_attribute/ ldap_next_attribute search functions.

Syntax

WINBERAPI VOID BERAPI ber_free(
  [in] BerElement *pBerElement,
  [in] INT        fbuf
);

Parameters

[in] pBerElement

Pointer to the BerElement structure to be deallocated.

[in] fbuf

Must be set to 0 if freeing structures allocated by ldap_first_attribute/ ldap_next_attribute, otherwise it must be set to 1.

Return value

None.

Requirements

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

See also

BerElement

Functions

ber_alloc_t