]> 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 0b8dac84a0a9350b2ccf9ca9c990e759b65f51d9..58d545283290db421167b2a0bd91cd1e7cac3eb9 100644 (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 );
        }