[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
(ITS#8940) FR: LDAP_AVA_FREE_ATTR in ldapava_free()
- To: openldap-its@OpenLDAP.org
- Subject: (ITS#8940) FR: LDAP_AVA_FREE_ATTR in ldapava_free()
- From: erik@halon.se
- Date: Fri, 30 Nov 2018 12:39:48 +0000
- Auto-submitted: auto-generated (OpenLDAP-ITS)
Full_Name: Erik Lax
Version: 2.4.46
OS: Linux
URL:
Submission from: (NULL) (212.85.68.184)
Hi,
It's possible to set the flag LDAP_AVA_FREE_VALUE to clear ber values on the
LDAPAVA structure in ldapava_free() but it's not possible to set the
LDAP_AVA_FREE_ATTR to clear attributes. I suspect OpenLDAP internals does not
need to free attributes in this way (hence the missing code).
I'm building a custom LDAPAVA (LDAPDN) object and it would be useful to be able
to set this flags to have it properly clean up both values and attributes in
ldap_dnfree().
https://github.com/openldap/openldap/blob/master/libraries/libldap/getdn.c#L587