]> git.sur5r.net Git - openldap/commitdiff
Fix bdb_attrinfo_free
authorHoward Chu <hyc@openldap.org>
Fri, 22 Apr 2005 14:21:54 +0000 (14:21 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 22 Apr 2005 14:21:54 +0000 (14:21 +0000)
servers/slapd/back-bdb/attr.c

index 395455318b8c4d059333280df7b7c4eeb5665815..562048413b9a74d26dad2178063353e1c0ce4356 100644 (file)
@@ -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 );
        }
 }