Fix memory leak if duplicate attr name in at_insert

This commit is contained in:
Howard Chu 1999-09-22 05:18:15 +00:00
parent b78e463065
commit c40583a2f1

View file

@ -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;
}