From: Howard Chu Date: Fri, 22 Apr 2005 14:21:54 +0000 (+0000) Subject: Fix bdb_attrinfo_free X-Git-Tag: OPENLDAP_AC_BP~836 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cc2288b4442db1f94cae10b18d281006bd0b3131;p=openldap Fix bdb_attrinfo_free --- diff --git a/servers/slapd/back-bdb/attr.c b/servers/slapd/back-bdb/attr.c index 395455318b..562048413b 100644 --- a/servers/slapd/back-bdb/attr.c +++ b/servers/slapd/back-bdb/attr.c @@ -305,8 +305,9 @@ bdb_attr_index_unparse( struct bdb_info *bdb, BerVarray *bva ) } static void -bdb_attrinfo_free( AttrInfo *ai ) +bdb_attrinfo_free( void *v ) { + AttrInfo *ai = v; #ifdef LDAP_COMP_MATCH free( ai->ai_cr ); #endif @@ -359,6 +360,7 @@ void bdb_attr_flush( struct bdb_info *bdb ) while (( a2 = al )) { al = al->next; avl_delete( &bdb->bi_attrs, a2->ptr, ainfo_cmp ); + bdb_attrinfo_free( a2->ptr ); ch_free( a2 ); } }