From cc2288b4442db1f94cae10b18d281006bd0b3131 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 22 Apr 2005 14:21:54 +0000 Subject: [PATCH] Fix bdb_attrinfo_free --- servers/slapd/back-bdb/attr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ); } } -- 2.39.5