]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldbm/passwd.c
In DN_SUBTREE use idl_allids instead of explicit malloc.
[openldap] / servers / slapd / back-ldbm / passwd.c
index a21da3dd86d2a597eca69e3fcd61d17e0230db05..58d545283290db421167b2a0bd91cd1e7cac3eb9 100644 (file)
@@ -1,7 +1,7 @@
 /* passwd.c - ldbm backend password routines */
 /* $OpenLDAP$ */
 /*
- * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
  */
 
@@ -27,7 +27,7 @@ ldbm_back_exop_passwd(
     struct berval      **rspdata,
        LDAPControl             *** rspctrls,
        const char              **text,
-    BVarray *refs
+    BerVarray *refs
 )
 {
        struct ldbminfo *li = (struct ldbminfo *) be->be_private;
@@ -175,14 +175,6 @@ done:
                cache_return_entry_w( &li->li_cache, e );
        }
 
-       if( id.bv_val != NULL ) {
-               free( id.bv_val );
-       }
-
-       if( new.bv_val != NULL ) {
-               free( new.bv_val );
-       }
-
        if( hash.bv_val != NULL ) {
                free( hash.bv_val );
        }