From: Howard Chu Date: Tue, 13 Jan 2015 22:01:17 +0000 (+0000) Subject: plug memleak in cr index (coverity) X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=486965a74c256b2a525405abfd767b4f47eaef81;p=openldap plug memleak in cr index (coverity) --- diff --git a/servers/slapd/back-bdb/attr.c b/servers/slapd/back-bdb/attr.c index 2f183b3bf3..4da751f959 100644 --- a/servers/slapd/back-bdb/attr.c +++ b/servers/slapd/back-bdb/attr.c @@ -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]);