]> git.sur5r.net Git - openldap/commitdiff
plug memleak in cr index (coverity)
authorHoward Chu <hyc@openldap.org>
Tue, 13 Jan 2015 22:01:17 +0000 (22:01 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 13 Jan 2015 22:01:17 +0000 (22:01 +0000)
servers/slapd/back-bdb/attr.c

index 2f183b3bf37f4b48d92bf04f0ad0ebd8a6bf039f..4da751f9598063c52f6dd6d49a6cdd99358c73e7 100644 (file)
@@ -298,6 +298,7 @@ bdb_attr_index_config(
                                 * just add the extracted component reference
                                 * in the AttrInfo
                                 */
+                               ch_free( a );
                                rc = insert_component_reference( cr, &a_cr->ai_cr );
                                if ( rc != LDAP_SUCCESS) {
                                        fprintf( stderr, " error during inserting component reference in %s ", attrs[i]);