1ldap_ber_free(3LDAP) LDAP Library Functions ldap_ber_free(3LDAP)
2
3
4
6 ldap_ber_free - free a BerElement structure from memory
7
9 cc -flag ... file ...-lldap [ -library ... ]
10 #include <ldap.h>
11
12 void ldap_ber_free(BerElement *ber, int freebuf
13
14
16 You can make a call to the ldap_ber_free() function to free BerElement
17 structures allocated by ldap_first_attribute() and by
18 ldap_next_attribute() function calls. When freeing structures allocated
19 by these functions, specify 0 for the freebuf argument. The
20 ldap_first_attribute() and by ldap_next_attribute() functions do not
21 allocate the extra buffer in the BerElement structure.
22
23
24 For example, to retrieve attributes from a search result entry, you
25 need to call the ldap_first_attribute() function. A call to this func‐
26 tion allocates a BerElement structure, which is used to help track the
27 current attribute. When you are done working with the attributes, this
28 structure should be freed from memory, if it still exists.
29
30
31 This function is deprecated . Use the ber_free() function instead.
32
34 See attributes(5) for descriptions of the following attributes:
35
36
37
38
39 ┌─────────────────────────────┬─────────────────────────────┐
40 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
41 ├─────────────────────────────┼─────────────────────────────┤
42 │Availability │SUNWcsl (32-bit) │
43 ├─────────────────────────────┼─────────────────────────────┤
44 │ │SUNWcslx (64-bit) │
45 ├─────────────────────────────┼─────────────────────────────┤
46 │Interface Stability │Obsolete │
47 └─────────────────────────────┴─────────────────────────────┘
48
50 ber_free(3LDAP), ldap_first_attribute(3LDAP),
51 ldap_next_attribute(3LDAP), attributes(5)
52
53
54
55SunOS 5.11 25 Oct 2001 ldap_ber_free(3LDAP)