mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Fix bdb_attrinfo_free
This commit is contained in:
parent
eda6c5abcb
commit
cc2288b444
@ -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 );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user