]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldbm/attr.c
Removed unnecessary definition that is already in core.schema.
[openldap] / servers / slapd / back-ldbm / attr.c
index 07bbcfdb6e2d9fed11b26db2ae079482635235df..a5ece146fbea8640925cc54426965fdd66a82415 100644 (file)
@@ -166,3 +166,22 @@ attr_index_config(
        if ( argc > 1 )
                charray_free( indexes );
 }
+
+
+#ifdef SLAP_CLEANUP
+
+static void
+ainfo_free( void *attr )
+{
+       struct attrinfo *ai = attr;
+       free( ai->ai_type );
+       free( ai );
+}
+
+void
+attr_index_destroy( Avlnode *tree )
+{
+       avl_free( tree, ainfo_free );
+}
+
+#endif /* SLAP_CLEANUP */