Directory Services

ber_free

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.

void ber_free(
  BerElement* pBerElement,
  INT fbuf
);

Parameters

pBerElement
[in] Pointer to the BerElement structure to be deallocated.
fbuf
[in] Must be set to 0 if freeing structures allocated by ldap_first_attribute/ ldap_next_attribute, otherwise it must be set to 1.

Return Values

None.

Requirements

Client: Included in Windows XP and Windows 2000 Professional.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension on Windows NT 4.0 SP6a and Windows 95/98/Me.
Header: Declared in Winber.h.
Library: Use Wldap32.lib.

See Also

Functions, BerElement, ber_alloc_t