mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 17:49:59 -05:00
Fix memory leak if duplicate attr name in at_insert
This commit is contained in:
parent
b78e463065
commit
c40583a2f1
1 changed files with 1 additions and 0 deletions
|
|
@ -540,6 +540,7 @@ at_insert(
|
|||
(AVL_CMP) attr_index_cmp,
|
||||
(AVL_DUP) avl_dup_error ) ) {
|
||||
*err = *names;
|
||||
ldap_memfree(air->air_name);
|
||||
ldap_memfree(air);
|
||||
return SLAP_SCHERR_DUP_ATTR;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue