]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/mods.c
More system schema checks
[openldap] / servers / slapd / mods.c
index 328cfc728732b5227a8a7aa360a6d393e4c7660c..b2d9566c839236fe7b5bedd9696f331f3ed7bf44 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
  */
 /*
@@ -24,8 +24,12 @@ slap_mod_free(
        int                             freeit
 )
 {
+#if 0
+       if ( mod->sm_type.bv_val)
+               free( mod->sm_type.bv_val );
+#endif
        if ( mod->sm_bvalues != NULL )
-               ber_bvecfree( mod->sm_bvalues );
+               bvarray_free( mod->sm_bvalues );
 
        if( freeit )
                free( mod );