]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Fix memory leak if duplicate attr name in at_insert
authorHoward Chu <hyc@openldap.org>
Wed, 22 Sep 1999 05:18:15 +0000 (05:18 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 22 Sep 1999 05:18:15 +0000 (05:18 +0000)
servers/slapd/attr.c

index de6453b353a4b15505c20efd56921978656369a5..7fb63cf9de27f974932a4c2701bc1ca5796fe579 100644 (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;
                        }